upmpdcli: use start() / stop() in init script like elsewhere
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 12 Dec 2014 07:43:43 +0000 (08:43 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 12 Dec 2014 07:44:34 +0000 (08:44 +0100)
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: Peter Korsgaard <peter@korsgaard.com>
package/upmpdcli/S99upmpdcli

index 314ea32390df489d31087fd3a304814fe282b305..07b10a6b29030c81be0d11ba5b1e5e5e6d5ede51 100644 (file)
@@ -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}"