1
0
Fork 0
mirror of https://github.com/yeenbean/pterodactyl-wings-openrc.git synced 2024-11-24 02:25:18 +00:00
pterodactyl-wings-openrc/wings
2024-08-14 12:29:55 -07:00

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
}