Added CT's Duplicati and Vouch-Proxy
This commit is contained in:
23
CT-Files/vouchproxy/Templates/Vouch-Service
Normal file
23
CT-Files/vouchproxy/Templates/Vouch-Service
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
: ${command_user:="vouch"}
|
||||
: ${command_group:="vouch"}
|
||||
: ${cfgfile:="/etc/vouch-proxyVID/config.yml"}
|
||||
|
||||
name="Vouch Proxy VID"
|
||||
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-proxyVID.log"
|
||||
required_files="$cfgfile"
|
||||
export VOUCH_ROOT="/usr/share/webapps/vouch-proxyVID"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user