problem with start-stop-daemon and --exec

Denys Vlasenko vda.linux at googlemail.com
Mon Mar 5 15:21:17 UTC 2012


On Sun, Mar 4, 2012 at 2:35 PM, Ed W <lists at wildgooses.com> wrote:
> Hi, I see a difference in behaviour between "real" start-stop-daemon on
> gentoo and busybox version.  Specifically nginx renames it's parent process
> commandline name:
>
> # cat /proc/`cat /var/run/nginx.pid`/cmdline
> nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
>
> However, I can stop it without a problem on "real" start-stop-daemon
> # start-stop-daemon --stop --exec /usr/sbin/nginx --pidfile
> /var/run/nginx.pid
>
> However, using busybox start-stop-daemon I get an error
>
> $ start-stop-daemon --stop --exec /usr/sbin/nginx --pidfile
> /var/run/nginx.pid
> no /usr/sbin/nginx found; none killed

Please try attached patch.

-- 
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20120305/c6f4e2bd/attachment.bin>


More information about the busybox mailing list