Skip to content

Instantly share code, notes, and snippets.

@jcxldn
Last active October 4, 2020 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcxldn/8ec4ef0f92617cda6e09613430829a88 to your computer and use it in GitHub Desktop.
Save jcxldn/8ec4ef0f92617cda6e09613430829a88 to your computer and use it in GitHub Desktop.
shairport-sync initd - using normal config location
#!/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