ayaports/user/jellysub/jellysub.openrc

20 lines
517 B
Text
Raw Permalink Normal View History

2022-08-15 15:45:42 +00:00
#!/sbin/openrc-run
name=$RC_SVCNAME
cfgfile="/etc/conf.d/$RC_SVCNAME.conf"
pidfile="/var/run/$RC_SVCNAME.pid"
command="/usr/bin/jellysub"
command_args=""
command_user="jellysub"
start_stop_daemon_args=""
command_background="yes"
output_log="/var/log/$RC_SVCNAME/$RC_SVCNAME.log"
error_log="/var/log/$RC_SVCNAME/$RC_SVCNAME.err"
start_pre() {
checkpath --directory --owner $command_user:qubes --mode 0775 \
/var/run /var/log/$RC_SVCNAME
export JELLYSUB_HTTP_PORT JELLYSUB_UPSTREAM_URL
}