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:
Mike Brady
2022-05-25 15:56:17 +01:00
parent ebd4e35b5a
commit 0dc34a4617
4 changed files with 118 additions and 86 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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