DAEMON=@sbindir@/${NAME}
BUSER=@dir_user@
BGROUP=@dir_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@dir_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
DAEMON=@sbindir@/${NAME}
BUSER=@fd_user@
BGROUP=@fd_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@fd_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
DAEMON=@sbindir@/${NAME}
BUSER=@sd_user@
BGROUP=@sd_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@sd_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
DAEMON=@sbindir@/${NAME}
BUSER=@dir_user@
BGROUP=@dir_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@dir_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} ${USERGRP}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
DAEMON=@sbindir@/${NAME}
BUSER=@fd_user@
BGROUP=@fd_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@fd_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
DAEMON=@sbindir@/${NAME}
BUSER=@sd_user@
BGROUP=@sd_group@
-USERGRP="-c @sysconfdir@/${NAME}.conf"
+BOPTIONS="-c @sysconfdir@/${NAME}.conf"
BPORT=@sd_port@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ "x${BUSER}" != "x" ]; then
USERGRP="--chuid ${BUSER}"
if [ "x${BGROUP}" != "x" ]; then
- USERGRP="${BOPTIONS}:${BGROUP}"
+ USERGRP="${USERGRP}:${BGROUP}"
fi
fi
case "$1" in
start)
echo -n "Starting ${DESC}: "
- start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
- start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON}
+ start-stop-daemon --oknodo --stop --quiet ${USERGRP} --exec ${DAEMON} -- ${BOPTIONS}
RETVAL=$?
echo "${NAME}"
;;