mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
package/openssh: consistently use $DAEMON in start script output
This was already done in start(), but not in stop() and reload(). Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
01177dcc81
commit
b730a1ea02
@@ -28,7 +28,7 @@ start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf "Stopping sshd: "
|
printf "Stopping %s: " "$DAEMON"
|
||||||
start-stop-daemon --stop --pidfile "$PIDFILE" \
|
start-stop-daemon --stop --pidfile "$PIDFILE" \
|
||||||
--exec "/usr/sbin/$DAEMON"
|
--exec "/usr/sbin/$DAEMON"
|
||||||
status=$?
|
status=$?
|
||||||
@@ -50,7 +50,7 @@ restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
printf "Reloading sshd config: "
|
printf "Reloading %s config: " "$DAEMON"
|
||||||
start-stop-daemon --stop --signal HUP -q --pidfile "$PIDFILE" \
|
start-stop-daemon --stop --signal HUP -q --pidfile "$PIDFILE" \
|
||||||
--exec "/usr/sbin/$DAEMON"
|
--exec "/usr/sbin/$DAEMON"
|
||||||
status=$?
|
status=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user