Package: lsb-base
Version: 3.1-15
Severity: normal
There is something weird in the implementation of killproc.
case "$opt" in
p) pidfile="$OPTARG"; specified=1;;
esac
...
if [ "$specified" ]; then
/sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal $sig
--quiet --name "$base"
else
/sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet
--oknodo --name "$base"
fi
>From reading the LSB spec, I think this "specified" should refer
to whether a *signal* was specified:
"If a signal is specified, using the -signal_name or -signal_number
syntaxes as specified by the kill command, the program is sent that
signal. Otherwise, a SIGTERM followed by a SIGKILL after an unspecified
number of seconds shall be sent."
The current implementation is wrong because it fails to send the signal
provided by the caller if no pid file was specfied.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]