Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on Ubuntu 8.10

The script runs when called from the command line with sudo /etc/init.d/xbindkeys start. Here's how it looks:

#! /bin/sh
case "$1" in
    ps aux | grep xbindkeys | head -n1 | awk '{print $2}' | xargs kill
    $0 stop
    $0 start

I had run sudo update-rc.d xbindkeys defaults earlier to create the symlinks. To make sure it was linked correctly, I tried chkconfig | grep xbindkeys, which returns:

xbindkeys                        2345

However, after restarting, I don't see the process with ps aux | grep xbindkeys.


share|improve this question
What do you see in the init script output when the system is starting up? – David Z Jun 30 '10 at 5:50
up vote 7 down vote accepted

xbindkeys needs a running X server to work which isn't available at that stage of starting your system. You should add xbindkeys to your .xinitrc (see man page xinit(1)) or .Xsession (see man page Xsession(5)) instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.