Fix init script.

This commit is contained in:
Eric Butler 2012-08-19 16:06:05 -07:00 committed by Harald Welte
parent dd68fcaeee
commit 3d610e63cc
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,9 @@
openbsc (0.12.0+git26-3) precise; urgency=low
* Fix init script.
-- Eric Butler <eric@codebutler.com> Sun, 19 Aug 2012 16:05:44 -0700
openbsc (0.12.0+git26-2) precise; urgency=low
* Fix libdbi package dependency.

View File

@ -1,2 +1,2 @@
# Configuration file
CONFIG_FILE="/etc/osmocom/osmo-nitb.cfg"
DAEMON_ARGS="-m"

View File

@ -16,9 +16,8 @@
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=osmo-nitb # Introduce a short description here
NAME=osmo-nitb # Introduce the short server's name here
DAEMON=/usr/sbin/osmo-nitb # Introduce the server's location here
DAEMON_ARGS="-D" # Arguments to run the daemon with
NAME=osmocom-nitb # Introduce the short server's name here
DAEMON=/usr/bin/osmo-nitb # Introduce the server's location here
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@ -35,7 +34,7 @@ SCRIPTNAME=/etc/init.d/$NAME
# 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 -D -c $CONFIG_FILE"
#
# Function that starts the daemon/service