Commit c9345dee authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

rpi-userland: use start() / stop() in init script like elsewhere



Other init scripts in Buildroot use start()/stop() instead of
do_start()/do_stop(), so change it here as well for consistency.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent f1d3e098
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -10,14 +10,14 @@ PIDFILE="/var/run/$NAME.pid"
# Read configuration variable file if it is present
[ -r "$CFGFILE" ] && . "$CFGFILE"

do_start()
start()
{
	echo -n "Starting $DESC: "
	start-stop-daemon -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS &&
			echo "done" || echo "failed"
}

do_stop()
stop()
{
	echo -n "Stopping $DESC: "
	if start-stop-daemon -K -q -R TERM/30/KILL/5 -p "$PIDFILE" -n "$NAME"; then
@@ -31,14 +31,14 @@ do_stop()

case "$1" in
	start)
		do_start
		start
		;;
	stop)
		do_stop
		stop
		;;
	restart|reload)
		do_stop
		do_start
		stop
		start
		;;
	*)
		echo "Usage: $0 {start|stop|restart|reload}" >&2