projects/aports·blob master · refs

18 lines · 384 B

1#!/sbin/openrc-run
2
3command=/usr/bin/librespot
4command_args="${librespot_args}"
5pidfile=/run/librespot.pid
6command_background=true
7command_user="${librespot_user:-librespot}:${librespot_group:-librespot}"
8output_log=/var/log/librespot.log
9error_log=/var/log/librespot.log
10
11depend() {
12 need localmount net
13 before firewall
14}
15
16start_pre() {
17 checkpath -f -o $command_user $output_log
18}