From ab9ff093cb7e35592b6edd8c442143d5e1cc0613 Mon Sep 17 00:00:00 2001 From: Eric Butler Date: Fri, 24 Aug 2012 21:16:01 -0700 Subject: Fix init script in debian package. --- debian/changelog | 6 ++++++ debian/openggsn.init | 18 +++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/debian/changelog b/debian/changelog index fc01e23..791eb9d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +openggsn (0.91+git33-1) precise; urgency=low + + * Fix init script. + + -- Eric Butler Fri, 24 Aug 2012 21:15:32 -0700 + openggsn (0.91+git33) precise; urgency=low * Update package for Ubuntu Precise. diff --git a/debian/openggsn.init b/debian/openggsn.init index b9c5d33..b546214 100755 --- a/debian/openggsn.init +++ b/debian/openggsn.init @@ -5,10 +5,8 @@ # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: Osmocom GSM network-in-a-box -# Description: A minimal implementation of the GSM Base Station Controller, -# Mobile Switching Center, Home Location regster and all other -# components to run a self-contained GSM network. +# Short-Description: Gateway GPRS Support Node +# Description: Gateway GPRS Support Node ### END INIT INFO # Author: Harald Welte @@ -16,26 +14,24 @@ # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="OpenGGSN Gateway GPRS Support Node" -NAME=openggsn +NAME=ggsn DAEMON=/usr/bin/ggsn -DAEMON_ARGS="-D" # Arguments to run the daemon with +DAEMON_ARGS="" # Arguments to run the daemon with PIDFILE=/var/run/$NAME.pid -SCRIPTNAME=/etc/init.d/$NAME +SCRIPTNAME=/etc/init.d/openggsn # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Read configuration variable file if it is present -[ -r /etc/default/$NAME ] && . /etc/default/$NAME +[ -r /etc/default/openggsn ] && . /etc/default/openggsn # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh - -# Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions -DAEMON_ARGS="$DAEMON_ARGS -c $CONFIG_FILE" +DAEMON_ARGS="$DAEMON_ARGS" # # Function that starts the daemon/service -- cgit v1.2.3