Package: dsyslog
Version: 0.5.0
Severity: important

When you install dsyslog for the first time, you get this nasty:

Setting up dsyslog (0.5.0~bpo50+1) ...
Starting system logging daemon : dsyslogrm: cannot remove 
`/var/run/dsyslog.pid': No such file or directory
 failed!
invoke-rc.d: initscript dsyslog, action "start" failed.
dpkg: error processing dsyslog (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 dsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking at /etc/init.d/dsyslog, I see in the start_server() that the first
thing it does is rm $PIDFILE which in the first run will of course not have
such a PID file, resulting in a return code of 1 and triggering the set -e,
which will cause the whole ball of wax to fail out.

start_server() {
        rm $PIDFILE
        start-stop-daemon  --start --quiet --pidfile $PIDFILE --background 
--make-pidfile \
              --exec $DAEMON -- $DAEMON_OPTS
        errcode=$?
        return $errcode
}


I suggest that this rm be turned into a rm -f, like so:

start_server() {
        rm -f $PIDFILE
        start-stop-daemon  --start --quiet --pidfile $PIDFILE --background 
--make-pidfile \
              --exec $DAEMON -- $DAEMON_OPTS
        errcode=$?
        return $errcode
}

micah


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-vserver-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dsyslog depends on:
ii  libc6                         2.9-7      GNU C Library: Shared libraries
ii  libglib2.0-0                  2.20.1-1   The GLib library of C routines
ii  libgnutls26                   2.6.5-1    the GNU TLS library - runtime libr

Versions of packages dsyslog recommends:
ii  logrotate                     3.7.7-3    Log rotation utility

Versions of packages dsyslog suggests:
pn  dsyslog-module-gnutls         <none>     (no description available)
ii  dsyslog-module-mysql          0.5.0      advanced modular syslog daemon - M
pn  dsyslog-module-postgresql     <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to