summaryrefslogtreecommitdiff
path: root/games-action/teeworlds/files/teeworlds-init.d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
commit0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch)
tree07815070629c7c11000a7f51ceb8ccbccb49a809 /games-action/teeworlds/files/teeworlds-init.d
parent1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/teeworlds/files/teeworlds-init.d')
-rw-r--r--games-action/teeworlds/files/teeworlds-init.d40
1 files changed, 0 insertions, 40 deletions
diff --git a/games-action/teeworlds/files/teeworlds-init.d b/games-action/teeworlds/files/teeworlds-init.d
deleted file mode 100644
index fa1a95831ff5..000000000000
--- a/games-action/teeworlds/files/teeworlds-init.d
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE=/var/run/teeworlds.pid
-GAME_DIRECTORY=/usr/games/bin
-CONFIG=/etc/teeworlds/teeworlds_srv.cfg
-
-depend() {
- use dns logger net
-}
-
-checkconfig() {
- if [ ! -e ${CONFIG} ] ; then
- eerror "You need an ${CONFIG} config file to run TeeWorlds"
- return 1
- fi
-}
-
-start() {
- ebegin "Starting TeeWorlds"
- start-stop-daemon --start --background --pidfile "${PIDFILE}" \
- --make-pidfile -d ${GAME_DIRECTORY} --user games \
- --exec ${GAME_DIRECTORY}/teeworlds_srv -- -f ${CONFIG}
- eend $?
-}
-
-reload() {
- ebegin "Reloading TeeWorlds configs and restarting processes"
- start-stop-daemon --stop --oknodo --user games \
- --pidfile "${PIDFILE}" --signal HUP \
- --exec ${GAME_DIRECTORY}/teeworlds_srv -- -f ${CONFIG}
- eend $?
-}
-
-stop() {
- ebegin "Stopping TeeWorlds"
- start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
- eend $?
-}