Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 developing a debian package that should start up a backup service as the root user. All works fine when I install it from the command line e.g. sudo dpkg -i xxx.deb but when I install this by clicking the .deb file on the desktop the service won't start up.

Below is an extract from my init script:


# Starts the attix5 daemon
  start-stop-daemon --start --quiet --oknodo --chuid $BACKUP_USER --chdir /usr/share/a5backup \
                --pidfile $PIDFILE --startas $sStartScript -- start


# Perform action
case "$1" in
log_daemon_msg "Starting $sName service"
    if do_start ; then
      log_end_msg 0
      log_end_msg 1

Is there something special I must do before the service can be started up as root when the deb file is installed via the GUI.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.