[PATCH] init-d-script: fix do_status when DAEMON=none
Trek
trek00 at inbox.ru
Mon Aug 31 19:21:04 BST 2020
My previous patch "allow to disable --exec or --name options"
was incomplete, because do_status would not work if DAEMON=none.
I would like to squash (merge) this patch inside the previous one, but
I don't want to flood the mailing-list with another set of patches.
---
debian/init-d-script | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/init-d-script b/debian/init-d-script
index eebc9522..cc0af818 100644
--- a/debian/init-d-script
+++ b/debian/init-d-script
@@ -167,7 +167,7 @@ do_reload_sigusr1() {
}
do_status() {
- status_of_proc ${PIDFILE:+-p "$PIDFILE"} "$DAEMON" "$NAME"
+ status_of_proc ${PIDFILE:+-p "$PIDFILE"} "${DAEMON:-none}" "$NAME"
}
if [ "$DEBUG" = "true" ] ; then
--
2.20.1
More information about the Debian-init-diversity
mailing list