aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/shairplay/shairplay.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/shairplay/shairplay.initd')
-rw-r--r--unmaintained/shairplay/shairplay.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/unmaintained/shairplay/shairplay.initd b/unmaintained/shairplay/shairplay.initd
new file mode 100644
index 0000000000..51dded347a
--- /dev/null
+++ b/unmaintained/shairplay/shairplay.initd
@@ -0,0 +1,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 $?
+}