Get rid of the -u option -- too confusing -- and instead add a --log-to-syslog option for use when starting as a daemon. Modify the startup scripts accordingly.
This commit is contained in:
@@ -13,7 +13,7 @@ rcvar="shairport_sync_enable"
|
||||
# This seems to be necessary in FreeBSD, as the startup system doesn't seem to like dashes ("-") in service names.
|
||||
|
||||
pidfile="/var/run/shairport-sync.pid"
|
||||
apptodaemonise="/usr/local/bin/shairport-sync"
|
||||
apptodaemonise="/usr/local/bin/shairport-sync --log-to-syslog"
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
# -S log to syslog; -P store the supervisor PID; -u to specify the user to run the service under
|
||||
|
||||
@@ -7,7 +7,7 @@ Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@prefix@/bin/shairport-sync
|
||||
ExecStart=@prefix@/bin/shairport-sync --log-to-syslog
|
||||
User=shairport-sync
|
||||
Group=shairport-sync
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Wants=network-online.target
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@prefix@/bin/shairport-sync
|
||||
ExecStart=@prefix@/bin/shairport-sync --log-to-syslog
|
||||
User=shairport-sync
|
||||
Group=shairport-sync
|
||||
|
||||
|
||||
Reference in New Issue
Block a user