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