diff options
Diffstat (limited to 'stable/games-action/teeworlds/files/teeworlds_init')
-rw-r--r-- | stable/games-action/teeworlds/files/teeworlds_init | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/stable/games-action/teeworlds/files/teeworlds_init b/stable/games-action/teeworlds/files/teeworlds_init deleted file mode 100644 index 1d3a816..0000000 --- a/stable/games-action/teeworlds/files/teeworlds_init +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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} --chuid teeworlds --exec ${GAME_DIRECTORY}/teeworlds_srv \ - -- -f ${CONFIG} - eend $? -} - -reload() { - ebegin "Reloading TeeWorlds configs and restarting processes" - start-stop-daemon --stop --oknodo --chuid teeworlds --pidfile "${PIDFILE}" --signal HUP --exec ${GAME_DIRECTORY}/teeworlds_srv -- -f ${CONFIG} - eend $? -} - -stop() { - ebegin "Stopping TeeWorlds" - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" - eend $? -} |