Commit 22c30d04 authored by Alexey Shabalin's avatar Alexey Shabalin

add --pidfile for start and stop

parent 21c2ffae
...@@ -23,14 +23,14 @@ RETVAL=0 ...@@ -23,14 +23,14 @@ RETVAL=0
start() start()
{ {
start_daemon --lockfile "$LOCKFILE" --expect-user $USER -- mpd $CONFFILE start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user $USER -- mpd $CONFFILE
RETVAL=$? RETVAL=$?
return $RETVAL return $RETVAL
} }
stop() stop()
{ {
stop_daemon --lockfile "$LOCKFILE" --expect-user $USER -- mpd --kill $CONFFILE stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user $USER -- mpd --kill $CONFFILE
RETVAL=$? RETVAL=$?
return $RETVAL return $RETVAL
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment