diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-05-21 12:36:22 +0200 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-21 11:04:09 +0000 |
commit | 32842555b0943bea51743b43882fd83924798797 (patch) | |
tree | 84371b14a37cde8cc52f65336423f0db86ff8888 /community/mopidy/mopidy.initd | |
parent | 403823ee875d7d9fabb5aed22e967127b79b5eda (diff) | |
download | aports-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.initd | 18 |
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 +} |