aports/testing/vouch-proxy/vouch-proxy.initd
Leonardo Arena 0f5c67a6ac testing/vouch-proxy: remove custom config file location
Seems to trigger unexpected behaviour, like default settings unset and missing X-headers

Remove chmod-clean, no longer needed
2021-04-12 09:42:11 +00:00

24 lines
624 B
Plaintext

#!/sbin/openrc-run
: ${command_user:="vouch"}
: ${command_group:="vouch"}
: ${cfgfile:="/etc/vouch-proxy/config.yml"}
name="Vouch Proxy"
command="/usr/sbin/vouch-proxy"
command_background="yes"
pidfile="/run/vouch-proxy/$RC_SVCNAME.pid"
start_stop_daemon_args="--user $command_user --group $command_group -1 /var/log/vouch-proxy/vouch-proxy.log"
required_files="$cfgfile"
export VOUCH_ROOT="/usr/share/webapps/vouch-proxy"
depend() {
use net
after firewall
}
start_pre() {
checkpath -d -m 0755 -o $command_user:$command_group ${pidfile%/*}
checkpath -d -m 0755 -o $command_user:$command_group /var/log/vouch-proxy
}