aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shairplay/shairplay.initd
blob: 51dded347a417d8ee962f32283a471730c14fa28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/runscript
# Released under the 2-clause BSD license.

depend() {
	need net
	need avahi
}

start() {
        ebegin "Starting shairplay"
        start-stop-daemon --start --background --pidfile /var/run/shairplay.pid --make-pidfile --exec /usr/bin/shairplay -- ${SHAIRPLAY_OPTS}
        eend $?
}

stop() {
        ebegin "Stopping shairplay"
        start-stop-daemon --stop --pidfile /var/run/shairplay.pid
        eend $?
}