[ufoai] 15/20: Drop sysV-init support

Markus Koschany apo-guest at moszumanska.debian.org
Sun Nov 22 23:18:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository ufoai.

commit 89405759e5316ef8035f5922f6882d37cc9fffb5
Author: Markus Koschany <apo at debian.org>
Date:   Sun Nov 22 16:05:31 2015 +0100

    Drop sysV-init support
---
 debian/ufoai-server.default |  9 -----
 debian/ufoai-server.init    | 81 ---------------------------------------------
 2 files changed, 90 deletions(-)

diff --git a/debian/ufoai-server.default b/debian/ufoai-server.default
deleted file mode 100644
index b97ff59..0000000
--- a/debian/ufoai-server.default
+++ /dev/null
@@ -1,9 +0,0 @@
-# Defaults for UFO:AI init script
-# sourced by /etc/init.d/ufoai-server
-# installed at /etc/default/ufoai-server by the maintainer scripts
-
-# You can add additional options that are passed to the daemon.
-#
-# debian_server.cfg is a symlink to /etc/ufoai-server/server.cfg, so you
-# can use that file for system-wide configuration.
-DAEMON_OPTS="+exec debian_server.cfg"
diff --git a/debian/ufoai-server.init b/debian/ufoai-server.init
deleted file mode 100644
index 71b3914..0000000
--- a/debian/ufoai-server.init
+++ /dev/null
@@ -1,81 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides:          ufoai-server
-# Required-Start:    $remote_fs $network
-# Required-Stop:     $remote_fs $network
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Start UFO Alien Invasion game server
-# Description:       Dedicated server for UFO:AI, a
-#                    a squad-based tactical strategy game
-### END INIT INFO
-
-PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
-NAME="ufoai-server"
-DAEMON="/usr/games/$NAME"
-DESC="UFO Alien Invasion dedicated server"
-PIDFILE="/var/run/$NAME.pid"
-BINARY="/usr/lib/$NAME/ufoded"
-USER="Debian-ufoai"
-
-test -x $DAEMON || exit 0
-
-. /lib/lsb/init-functions
-
-# Include defaults if available
-if [ -f /etc/default/$NAME ] ; then
-    . /etc/default/$NAME
-fi
-
-ufo_start() {
-    start-stop-daemon \
-        --start \
-        --quiet \
-        --pidfile $PIDFILE \
-        --oknodo \
-        --background \
-        --exec $BINARY \
-        --startas $DAEMON \
-        --make-pidfile \
-        --chuid $USER \
-        -- $DAEMON_OPTS > /dev/null 2>&1 || return 1
-    return 0
-}
-
-ufo_stop() {
-    start-stop-daemon \
-        --stop \
-        --quiet \
-        --pidfile $PIDFILE \
-        --oknodo \
-        --exec $BINARY || return 1
-    rm -f $PIDFILE
-    return 0
-}
-
-case "$1" in
-    start)
-        log_begin_msg "Starting $DESC: $NAME"
-        ufo_start
-        log_end_msg $?
-    ;;
-    stop)
-        log_begin_msg "Stopping $DESC: $NAME"
-        ufo_stop
-        log_end_msg $?
-    ;;
-    restart|force-reload)
-        log_begin_msg "Restarting $DESC: $NAME"
-        ufo_stop && sleep 1 && ufo_start
-        log_end_msg $?
-    ;;
-    status)
-    status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
-    ;;
-    *)
-    echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
-    exit 1
-    ;;
-esac
-
-exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ufoai.git



More information about the Pkg-games-commits mailing list