mirror of
https://github.com/yeenbean/pterodactyl-wings-openrc.git
synced 2024-11-08 10:45:09 +00:00
18 lines
437 B
Text
Executable file
18 lines
437 B
Text
Executable file
#!/sbin/openrc-run
|
|
|
|
name=$RC_SVCNAME
|
|
cfgfile="/etc/$RC_SVCNAME/$RC_SVCNAME.conf"
|
|
command="/usr/local/bin/wings"
|
|
command_user="root"
|
|
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
|
|
#start_stop_daemon_args="--args-for-start-stop-daemon"
|
|
command_background="yes"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner $command_user:$command_user --mode 0775 \
|
|
/run/$RC_SVCNAME /var/log/$RC_SVCNAME
|
|
}
|