mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-26 14:57:17 +00:00
Merge branch 'master' of /home/git/repositories/nico/ympd
This commit is contained in:
commit
fbcd0ac9e1
@ -8,8 +8,7 @@ set(CPACK_PACKAGE_VERSION_PATCH "4")
|
|||||||
set(CPACK_GENERATOR "DEB;RPM;TGZ")
|
set(CPACK_GENERATOR "DEB;RPM;TGZ")
|
||||||
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
||||||
set(DEBIAN_PACKAGE_SECTION "web")
|
set(DEBIAN_PACKAGE_SECTION "web")
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MPD web client based on Websockets and
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MPD web client based on Websockets and Bootstrap")
|
||||||
Bootstrap")
|
|
||||||
set(CPACK_PACKAGE_CONTACT "Andrew Karpow <andy@ympd.org>")
|
set(CPACK_PACKAGE_CONTACT "Andrew Karpow <andy@ympd.org>")
|
||||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "andy@ndyk.de")
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "andy@ndyk.de")
|
||||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libssl1.0.0,libmpdclient2")
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libssl1.0.0,libmpdclient2")
|
||||||
|
@ -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,14 +38,14 @@ 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()
|
||||||
{
|
{
|
||||||
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
|
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
|
||||||
RETVAL="$?"
|
RETVAL="$?"
|
||||||
|
|
||||||
[ "$RETVAL" = 2 ] && return 2
|
[ "$RETVAL" = 2 ] && return 2
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
return "$RETVAL"
|
return "$RETVAL"
|
||||||
|
Loading…
Reference in New Issue
Block a user