diff --git a/debian/ngcp-www-csc.default b/debian/ngcp-www-csc.default index ae949c8..5c5759a 100644 --- a/debian/ngcp-www-csc.default +++ b/debian/ngcp-www-csc.default @@ -1 +1,2 @@ RUN_DAEMON="no" +NPROC=1 diff --git a/debian/ngcp-www-csc.init b/debian/ngcp-www-csc.init index 4f0359d..fea4bfd 100644 --- a/debian/ngcp-www-csc.init +++ b/debian/ngcp-www-csc.init @@ -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