Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
init scripts are using the START_SNAPCLIENT/SERVER variable
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Jul 8, 2018
1 parent 9a31724 commit b61cc10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildroot-external/package/snapcast/S99snapclient
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PIDFILE=/var/run/$NAME/pid
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
SNAPCLIENT_OPTS="-d $SNAPCLIENT_OPTS"

if [ "$START_SNAPCLIENT" != "true" ] ; then
exit 0
fi

start() {
echo -n "Starting $NAME: "
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- $SNAPCLIENT_OPTS
Expand Down
4 changes: 4 additions & 0 deletions buildroot-external/package/snapcast/S99snapserver
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PIDFILE=/var/run/$NAME/pid
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
SNAPSERVER_OPTS="-d $SNAPSERVER_OPTS"

if [ "$START_SNAPSERVER" != "true" ] ; then
exit 0
fi

start() {
echo -n "Starting $NAME: "
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- $SNAPSERVER_OPTS
Expand Down

0 comments on commit b61cc10

Please sign in to comment.