ayaports/user/rmfakecloud/rmfakecloud.openrc

19 lines
644 B
Text
Raw Permalink Normal View History

2023-01-10 19:13:33 +00:00
#!/sbin/openrc-run
name="$RC_SVCNAME"
cfgfile="/etc/conf.d/$RC_SVCNAME"
pidfile="/var/run/$RC_SVCNAME.pid"
command="/usr/bin/rmfakecloud"
command_args=""
command_user="$RM_USER"
command_group="$RM_GROUP"
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:$command_group --mode 0775 \
/var/log/$RC_SVCNAME /var/lib/$RC_SVCNAME
export STORAGE_URL PORT DATADIR RM_SMTP_SERVER RM_SMTP_USERNAME RM_SMTP_PASSWORD RM_SMTP_FROM RMAPI_HWR_APPLICATIONKEY RMAPI_HWR_HMAC TLS_KEY TLS_CERT
}