diff options
Diffstat (limited to 'testing/librespot/librespot.initd')
-rw-r--r-- | testing/librespot/librespot.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/librespot/librespot.initd b/testing/librespot/librespot.initd new file mode 100644 index 00000000000..414526802b7 --- /dev/null +++ b/testing/librespot/librespot.initd @@ -0,0 +1,18 @@ +#!/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 +} |