Skip to content

Instantly share code, notes, and snippets.

@sussycatgirl
Created August 24, 2022 18:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sussycatgirl/b57b990332f5bd15313301f5777aa5de to your computer and use it in GitHub Desktop.
OpenRC service file for pterodactyl
#!/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