aports/testing/librespot/librespot.initd

18 lines
384 B
Bash

#!/sbin/openrc-run
command=/usr/bin/librespot
command_args="${librespot_args}"
pidfile=/run/librespot.pid
command_background=true
command_user="${librespot_user:-librespot}:${librespot_group:-librespot}"
output_log=/var/log/librespot.log
error_log=/var/log/librespot.log
depend() {
need localmount net
before firewall
}
start_pre() {
checkpath -f -o $command_user $output_log
}