[PATCH] Make start-stop-daemon handle sending signals better
Rob Landley
rob at landley.net
Wed Aug 30 21:42:55 UTC 2006
On Wednesday 30 August 2006 4:25 pm, Natanael Copa wrote:
> > So why doesn't start-stop-daemon --name work then? (The name it uses
> > dereferences the symlink?)
>
> AFAIK --name works fine with busybox.
>
> The more common used --exec does not.
So telling people to use "--name" instead of exec isn't a solution?
(I haven't got anything against changing start-stop-daemon, I just don't use
it. And unlike most applets where I'm not familiar with what it does, I'm
not particularly motivated to learn this one if it's debian-only, so I'm
about to check in a fix blind...)
> > > --exec require you have a full pathname to executable and if you use
> > > --exec /bin/busybox <anything> you are telling ssd to check
> > > if /bin/busybox is alredy running before starting another.
> >
> > Sounding a bit like pilot error.
> >
> > Ok, so confirming: the fix checks to make sure that there isn't a version
> > running that was called under the same name as the one we're about to
launch?
>
> Yes exactly.
>
> > Does the command line's argv[0] include the path it was called at?
>
> english is not my native language and im not 100% what you mean here. Do
> you mean if current working dir is tored too? its not.
Ok:
What's the difference between --name and --exec? If I tell it:
start-stop-daemon /usr/bin/walrus
And walrus is a symlink to busybox, what case works and what case doesn't?
> If you start your deamon with "//usr/sbin/./crond" that what you get in
> cmdline. The fix won't detect difference between //usr/sbin/./crond
> and /usr/sbin/crond
>
> start-stop-daemon is almost only used in scripts, specially init.d
> scripts and for that, you will always use absolute paths. Its not
> perfect but it makes the most common used way to use start-stop-daemon
> to work with busybox daemon links - and it does it without increasing
> the size.
Ok.
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list