Created
August 24, 2022 18:41
-
-
Save sussycatgirl/b57b990332f5bd15313301f5777aa5de to your computer and use it in GitHub Desktop.
OpenRC service file for pterodactyl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
name="Pterodactyl Wings" | |
#command="/usr/local/bin/wings" | |
depend() { | |
after docker | |
} | |
start() { | |
ebegin "Starting wings" | |
start-stop-daemon --background --start --exec /usr/local/bin/wings \ | |
--make-pidfile --pidfile /etc/pterodactyl/wings.pid | |
eend $? | |
} | |
stop() { | |
ebegin "Stopping wings" | |
start-stop-daemon --stop --exec /usr/local/bin/wings \ | |
--pidfile /etc/pterodactyl/wings.pid | |
eend $? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment