[PATCH] init-d-script: fix do_status when DAEMON=none
Thorsten Glaser
t.glaser at tarent.de
Mon Aug 31 19:25:50 BST 2020
On Mon, 31 Aug 2020, Trek wrote:
> My previous patch "allow to disable --exec or --name options"
> was incomplete, because do_status would not work if DAEMON=none.
vs.
> do_status() {
> - status_of_proc ${PIDFILE:+-p "$PIDFILE"} "$DAEMON" "$NAME"
> + status_of_proc ${PIDFILE:+-p "$PIDFILE"} "${DAEMON:-none}" "$NAME"
This does not match the description. What you’re doing here
is to expand $DAEMON to “none” if it’s empty or unset but your
description says it doesn’t work if “none” is used, but you’re
setting it to “none” in more cases?
bye,
//mirabilos
--
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)
More information about the Debian-init-diversity
mailing list