Revert "debian: add an option to diable wcs at boot"
This reverts commit fb5df20311
.
cf : #2720
This commit is contained in:
parent
fb5df20311
commit
e14e260575
|
@ -28,32 +28,19 @@ then
|
|||
. /etc/default/$NAME
|
||||
fi
|
||||
|
||||
is_true() {
|
||||
if [ "x$1" = "xtrue" -o "x$1" = "xyes" -o "x$1" = "x0" ] ; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service.
|
||||
#
|
||||
d_start() {
|
||||
if is_true "$START" ; then
|
||||
if [ $CONFIG_FILE ]; then
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
||||
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
|
||||
--exec $DAEMON -- -f $CONFIG_FILE start $OPTIONS
|
||||
else
|
||||
start-stop-daemon --start --quiet --pidfile $pidfile \
|
||||
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
|
||||
--exec $DAEMON -- start $OPTIONS
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
echo "w.c.s. not configured to start, please edit /etc/default/wcs to enable"
|
||||
fi
|
||||
if [ $CONFIG_FILE ]; then
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
||||
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
|
||||
--exec $DAEMON -- -f $CONFIG_FILE start $OPTIONS
|
||||
else
|
||||
start-stop-daemon --start --quiet --pidfile $pidfile \
|
||||
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
|
||||
--exec $DAEMON -- start $OPTIONS
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue