aports/testing/spotifyd/spotifyd.initd
2022-01-05 11:47:33 +00:00

19 lines
377 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
command=/usr/bin/spotifyd
command_args="--no-daemon"
command_user="spotifyd:spotifyd"
output_log=/var/log/$RC_SVCNAME.log
depend() {
need net
}
start_pre() {
checkpath --directory --owner $command_user --mode 0775 \
/var/cache/$RC_SVCNAME
checkpath --file --owner $command_user --mode 0644 \
/var/log/$RC_SVCNAME.log
}