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