1
0
Fork 0
mirror of https://github.com/yeenbean/pterodactyl-wings-openrc.git synced 2024-12-22 08:20:07 +00:00

Add wings service script

This commit is contained in:
zima 2024-08-14 12:29:55 -07:00
parent 524c57a086
commit 8603c8012c

18
wings Executable file
View file

@ -0,0 +1,18 @@
#!/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
}