mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-07 05:11:43 +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"
|
DESC="Snapcast client"
|
||||||
DAEMON=/usr/bin/$SERVICE_NAME
|
DAEMON=/usr/bin/$SERVICE_NAME
|
||||||
SNAPCLIENT_OPTS="-d"
|
|
||||||
|
|
||||||
|
|
||||||
# Exit if the package is not installed
|
# Exit if the package is not installed
|
||||||
|
@ -17,6 +16,7 @@ SNAPCLIENT_OPTS="-d"
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
||||||
|
SNAPCLIENT_OPTS="-d $SNAPCLIENT_OPTS"
|
||||||
|
|
||||||
if [ "$START_SNAPCLIENT" != "true" ] ; then
|
if [ "$START_SNAPCLIENT" != "true" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -36,7 +36,7 @@ start()
|
||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
service_stop $DAEMON
|
service_stop $DAEMON
|
||||||
killall $DAEMON
|
killall $SERVICE_NAME
|
||||||
# Many daemons don't delete their pidfiles when they exit.
|
# Many daemons don't delete their pidfiles when they exit.
|
||||||
rm -f $SERVICE_PID_FILE
|
rm -f $SERVICE_PID_FILE
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ SERVICE_PID_FILE=/var/run/$SERVICE_NAME/pid
|
||||||
|
|
||||||
DESC="Snapcast server"
|
DESC="Snapcast server"
|
||||||
DAEMON=/usr/bin/$SERVICE_NAME
|
DAEMON=/usr/bin/$SERVICE_NAME
|
||||||
SNAPSERVER_OPTS="-d"
|
|
||||||
|
|
||||||
|
|
||||||
# Exit if the package is not installed
|
# Exit if the package is not installed
|
||||||
|
@ -17,6 +16,7 @@ SNAPSERVER_OPTS="-d"
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
[ -r /etc/default/$SERVICE_NAME ] && . /etc/default/$SERVICE_NAME
|
||||||
|
SNAPSERVER_OPTS="-d $SNAPSERVER_OPTS"
|
||||||
|
|
||||||
if [ "$START_SNAPSERVER" != "true" ] ; then
|
if [ "$START_SNAPSERVER" != "true" ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -36,7 +36,7 @@ start()
|
||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
service_stop $DAEMON
|
service_stop $DAEMON
|
||||||
killall $DAEMON
|
killall $SERVICE_NAME
|
||||||
# Many daemons don't delete their pidfiles when they exit.
|
# Many daemons don't delete their pidfiles when they exit.
|
||||||
rm -f $SERVICE_PID_FILE
|
rm -f $SERVICE_PID_FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue