Last active
October 4, 2020 11:50
-
-
Save jcxldn/8ec4ef0f92617cda6e09613430829a88 to your computer and use it in GitHub Desktop.
shairport-sync initd - using normal config location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
description="Implements a synchronous (multi-room-capable) AirPlay receiver" | |
start_pre() { | |
/usr/sbin/alsactl restore | |
} | |
command="/usr/bin/shairport-sync" | |
command_args="-c /etc/shairport-sync.conf" | |
command_background="yes" | |
pidfile="/run/$RC_SVCNAME.pid" | |
start_stop_daemon_args=" | |
--stdout /var/log/$RC_SVCNAME.log | |
--stderr /var/log/$RC_SVCNAME.log" | |
depend() { | |
need net localmount avahi-daemon | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment