#202719 s-s-d: --exec should also check the first argument of /proc/PID/cmdline

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Tobias Burnus
Date:
2015-03-29 00:03:07 UTC
Severity:
normal
#202719#5
Date:
2003-07-24 16:46:16 UTC
From:
To:
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

#202719#12
Date:
2007-07-17 00:19:47 UTC
From:
To:
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 :(