Am 08.10.2014 um 21:37 schrieb Sven Herzberg:
> 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.

I initially used -name but then was told by the dpkg/s-s-d maintainers
to switch to -exec, because -name has other issues.

So no, I'll wait until someone fixes s-s-d properly before switching
back and forth.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to