mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
don't change user/group by default
This commit is contained in:
parent
fa5aab6dd7
commit
f89bf272e2
10 changed files with 52 additions and 32 deletions
|
@ -4,18 +4,23 @@
|
|||
START_SNAPSERVER=true
|
||||
|
||||
# Allowed options:
|
||||
# -h, --help produce help message
|
||||
# -v, --version show version number
|
||||
# -p, --port arg (=1704) server port
|
||||
# -h, --help Produce help message
|
||||
# -v, --version Show version number
|
||||
# -p, --port arg (=1704) Server port
|
||||
# --controlPort arg (=1705) Remote control port
|
||||
# -s, --sampleformat arg (=48000:16:2)
|
||||
# sample format
|
||||
# -c, --codec arg (=flac) transport codec [flac|ogg|pcm][:options]
|
||||
# -s, --stream arg (=pipe:///tmp/snapfifo?name=default)
|
||||
# URI of the PCM input stream.
|
||||
# Format: TYPE://host/path?name=NAME
|
||||
# [&codec=CODEC]
|
||||
# [&sampleformat=SAMPLEFORMAT]
|
||||
# --sampleformat arg (=48000:16:2) Default sample format
|
||||
# -c, --codec arg (=flac) Default transport codec
|
||||
# (flac|ogg|pcm)[:options]
|
||||
# Type codec:? to get codec specific options
|
||||
# -f, --fifo arg (=/tmp/snapfifo) name of the input fifo file
|
||||
# -d, --daemon [=arg(=0)] daemonize
|
||||
# --streamBuffer arg (=20) Default stream read buffer [ms]
|
||||
# -b, --buffer arg (=1000) Buffer [ms]
|
||||
# -d, --daemon [=arg(=0)] Daemonize
|
||||
# optional process priority [-20..19]
|
||||
# -b, --buffer arg (=1000) buffer [ms]
|
||||
# --pipeReadBuffer arg (=20) pipe read buffer [ms]
|
||||
# --user arg the user[:group] to run snapserver as when daemonized
|
||||
|
||||
SNAPSERVER_OPTS="-d"
|
||||
SNAPSERVER_OPTS=""
|
||||
|
|
|
@ -18,7 +18,6 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/
|
|||
DESC="Snapcast server"
|
||||
NAME=snapserver
|
||||
DAEMON=/usr/bin/$NAME
|
||||
SNAPSERVER_OPTS="-d"
|
||||
PIDFILE=/var/run/$NAME/pid
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
|
@ -27,6 +26,7 @@ SCRIPTNAME=/etc/init.d/$NAME
|
|||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
SNAPSERVER_OPTS="-d --user snapserver:snapserver $SNAPSERVER_OPTS"
|
||||
|
||||
if [ "$START_SNAPSERVER" != "true" ] ; then
|
||||
exit 0
|
||||
|
|
|
@ -6,7 +6,7 @@ Requires=network-online.target
|
|||
[Service]
|
||||
EnvironmentFile=-/etc/default/snapserver
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/snapserver $SNAPSERVER_OPTS
|
||||
ExecStart=/usr/sbin/snapserver -d --user snapserver:snapserver $SNAPSERVER_OPTS
|
||||
PIDFile=/var/run/snapserver.pid
|
||||
Restart=always
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue