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: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard 2014-12-12 08:43:43 +01:00
parent 20b4a4e8d1
commit 4e561eda37
1 changed files with 6 additions and 6 deletions

View 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}"