Hi,

I can confirm Vincent’s conclusions, the init script has a do_stop() method 
containing the line:
> start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile 
> /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd

And here’s the trailing output from:
> # sudo strace start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 
> --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd; echo $?
[…]
> stat("/usr/sbin/rsyslogd", {st_mode=S_IFREG|0755, st_size=384416, ...}) = 0
> open("/var/run/rsyslogd.pid", O_RDONLY) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=5, ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
> 0x7fdb20e4d000
> read(3, "1566\n", 4096)                 = 5
> readlink("/proc/1566/exe", " (deleted)/usr/sbin/rsyslogd"..., 256) = 28
> stat(" (deleted)/usr/sbin/rsyslogd", 0x7fffd3dcc8e0) = -1 ENOENT (No such 
> file or directory)
> close(3)                                = 0
> munmap(0x7fdb20e4d000, 4096)            = 0
> exit_group(1)                           = ?
> 1

I looked at the nginx script and then tried this modified version:
> sudo strace start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile 
> /var/run/rsyslogd.pid --name rsyslogd; echo $?
[…]
> 0

So, I propose to ship another fix which replaces “--exec $DAEMON” with “-name 
$RSYSLOGD” in the SysV init script.

Kind regards,
Sven

--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to