mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
fix options and uninstallation
This commit is contained in:
parent
f712b8abbc
commit
bcb7b3e18c
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,6 @@ SERVICE_PID_FILE=/var/run/$SERVICE_NAME/pid
|
|||
|
||||
DESC="Snapcast client"
|
||||
DAEMON=/usr/bin/$SERVICE_NAME
|
||||
SNAPCLIENT_OPTS="-d"
|
||||
|
||||
|
||||
# Exit if the package is not installed
|
||||
|
@ -17,6 +16,7 @@ SNAPCLIENT_OPTS="-d"
|
|||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
||||
SNAPCLIENT_OPTS="-d $SNAPCLIENT_OPTS"
|
||||
|
||||
if [ "$START_SNAPCLIENT" != "true" ] ; then
|
||||
exit 0
|
||||
|
@ -36,7 +36,7 @@ start()
|
|||
stop()
|
||||
{
|
||||
service_stop $DAEMON
|
||||
killall $DAEMON
|
||||
killall $SERVICE_NAME
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $SERVICE_PID_FILE
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ SERVICE_PID_FILE=/var/run/$SERVICE_NAME/pid
|
|||
|
||||
DESC="Snapcast server"
|
||||
DAEMON=/usr/bin/$SERVICE_NAME
|
||||
SNAPSERVER_OPTS="-d"
|
||||
|
||||
|
||||
# Exit if the package is not installed
|
||||
|
@ -17,6 +16,7 @@ SNAPSERVER_OPTS="-d"
|
|||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
||||
SNAPSERVER_OPTS="-d $SNAPSERVER_OPTS"
|
||||
|
||||
if [ "$START_SNAPSERVER" != "true" ] ; then
|
||||
exit 0
|
||||
|
@ -36,7 +36,7 @@ start()
|
|||
stop()
|
||||
{
|
||||
service_stop $DAEMON
|
||||
killall $DAEMON
|
||||
killall $SERVICE_NAME
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $SERVICE_PID_FILE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue