Currently, start-stop-daemon only checks the /proc/PID/exe if started with the --exex|-e option. The problem is: If a program is e.g. a PERL script, /proc/PID/exe -> /usr/bin/perl. Therefore the /proc/PID/cmdline is of interest. This is needed because of Debian bug: #167757: lsb: start_daemon start already running programs Tobias
I'm running into this as well on debian sarge it would be great if the start/stop functionality of start-stop-daemon performed its checks consistently. For instance, the 'stop' part works (it checks /proc/PID/stat) but start only checks /proc/PID/exe, which as Tobias mentioned is '/usr/bin/perl' on perl scripts, which is fairly useless :(