Commit 4e561eda authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

upmpdcli: 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 20b4a4e8
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -9,14 +9,14 @@ DAEMON_ARGS="-D -c $CONFFILE"
# Sanity checks
test -f $DAEMON || exit 0

do_start() {
start() {
        echo -n "Starting $NAME: "
        start-stop-daemon --start --quiet --background --exec $DAEMON \
                -- $DAEMON_ARGS \
                && echo "OK" || echo "FAIL"
}

do_stop() {
stop() {
        echo -n "Stopping $NAME: "
        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                && echo "OK" || echo "FAIL"
@@ -24,15 +24,15 @@ do_stop() {

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