aboutsummaryrefslogtreecommitdiffstats
path: root/community/mopidy/mopidy.initd
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-05-21 12:36:22 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-21 11:04:09 +0000
commit32842555b0943bea51743b43882fd83924798797 (patch)
tree84371b14a37cde8cc52f65336423f0db86ff8888 /community/mopidy/mopidy.initd
parent403823ee875d7d9fabb5aed22e967127b79b5eda (diff)
downloadaports-32842555b0943bea51743b43882fd83924798797.tar.bz2
aports-32842555b0943bea51743b43882fd83924798797.tar.xz
testing/mopidy: move to community
Diffstat (limited to 'community/mopidy/mopidy.initd')
-rw-r--r--community/mopidy/mopidy.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/mopidy/mopidy.initd b/community/mopidy/mopidy.initd
new file mode 100644
index 0000000000..6028d1e754
--- /dev/null
+++ b/community/mopidy/mopidy.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+name=mopidy
+command="/usr/bin/mopidy"
+command_args="--config /etc/mopidy/mopidy.conf"
+command_user="mopidy"
+start_stop_daemon_args="--background --make-pidfile"
+pidfile="/run/mopidy.pid"
+
+depend() {
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner mopidy:audio --mode 0775 \
+ /var/log/mopidy
+}