From 1f743f4004fc97576609dd8c09d80f0bfd08913e Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Fri, 12 Jul 2024 14:49:54 +0200 Subject: [PATCH] package/openssh: tidy up init script * Use long options for start-stop-daemon * Avoid --quiet, except for reload where the "stopping" message could be confusing Signed-off-by: Fiona Klute (WIWA) Signed-off-by: Thomas Petazzoni --- package/openssh/S50sshd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package/openssh/S50sshd b/package/openssh/S50sshd index d16a7ad8fc..56db6ebff9 100644 --- a/package/openssh/S50sshd +++ b/package/openssh/S50sshd @@ -16,8 +16,8 @@ start() { /usr/bin/ssh-keygen -A printf "Starting %s: " "$DAEMON" - start-stop-daemon -S -q -p "$PIDFILE" \ - -x "/usr/sbin/$DAEMON" + start-stop-daemon --start --pidfile "$PIDFILE" \ + --exec "/usr/sbin/$DAEMON" status=$? if [ "$status" -eq 0 ]; then echo "OK" @@ -29,8 +29,8 @@ start() { stop() { printf "Stopping sshd: " - start-stop-daemon -K -q -p "$PIDFILE" \ - -x "/usr/sbin/$DAEMON" + start-stop-daemon --stop --pidfile "$PIDFILE" \ + --exec "/usr/sbin/$DAEMON" status=$? if [ "$status" -eq 0 ]; then echo "OK" @@ -51,8 +51,8 @@ restart() { reload() { printf "Reloading sshd config: " - start-stop-daemon -K --signal HUP -q -p "$PIDFILE" \ - -x "/usr/sbin/$DAEMON" + start-stop-daemon --stop --signal HUP -q --pidfile "$PIDFILE" \ + --exec "/usr/sbin/$DAEMON" status=$? if [ "$status" -eq 0 ]; then echo "OK"