MT#7275 OPTIONS must be set after load defaults file

mr3.4.1
Victor Seva 11 years ago
parent 033a9d1455
commit 1b934d6eaa

@ -1 +1,2 @@
RUN_DAEMON="no"
NPROC=1

@ -22,9 +22,7 @@ DESC="NGCP-CSC Webapp"
DEFAULTS=/etc/default/$NAME
USOCKET=$HOMERUN/ngcp-www-csc.sock
LOGERR=/var/log/ngcp/ngcp-www-csc.log
NPROC=5
OPTIONS="--listen $USOCKET --daemon --pidfile $PIDFILE --nproc $NPROC"
NPROC=1
if ! [ -x "$DAEMON" ] ; then
log_warning_msg "File $DAEMON not available/executable."
@ -87,6 +85,8 @@ if [ -f $DEFAULTS ]; then
. $DEFAULTS || true
fi
OPTIONS="--listen $USOCKET --daemon --pidfile $PIDFILE --nproc $NPROC"
if [ "$RUN_DAEMON" != "yes" ]; then
log_failure_msg "$NAME not yet configured. Edit /etc/default/$NAME first."
log_end_msg 0

Loading…
Cancel
Save