2021-06-04 15:24:22 +00:00
|
|
|
#!/sbin/openrc-run
|
2023-01-10 20:23:30 +00:00
|
|
|
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"
|
2021-06-04 15:24:22 +00:00
|
|
|
|
2023-01-10 20:23:30 +00:00
|
|
|
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
|
2021-06-04 15:24:22 +00:00
|
|
|
}
|