diff options
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 +} |