mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-30 00:19:54 +00:00
fix init script
This commit is contained in:
parent
993be4a474
commit
d735295cdc
@ -10,6 +10,8 @@
|
|||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
#Author: Andrew Karpow <andy@ndyk.de>
|
#Author: Andrew Karpow <andy@ndyk.de>
|
||||||
|
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC="ympd Daemon"
|
DESC="ympd Daemon"
|
||||||
NAME=ympd
|
NAME=ympd
|
||||||
@ -36,7 +38,7 @@ do_start()
|
|||||||
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
|
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
|
||||||
--exec $DAEMON --test > /dev/null || return 1
|
--exec $DAEMON --test > /dev/null || return 1
|
||||||
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
|
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
|
||||||
--exec $DAEMON --stdout $LOG_OUT --stderr $LOG_ERR -- $DAEMON_OPT || return 2
|
--exec $DAEMON -- $DAEMON_OPT || return 2
|
||||||
}
|
}
|
||||||
|
|
||||||
do_stop()
|
do_stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user