mirror of
https://github.com/yeenbean/pterodactyl-wings-openrc.git
synced 2024-11-08 10:45:09 +00:00
Add wings service script
This commit is contained in:
parent
524c57a086
commit
8603c8012c
1 changed files with 18 additions and 0 deletions
18
wings
Executable file
18
wings
Executable 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
|
||||||
|
}
|
Loading…
Reference in a new issue