# If the daemon can reload its configuration without
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
- #
+
+ $DAEMON -t $DAEMON_OPTS > /dev/null || return 2
start-stop-daemon --stop --signal USR1 --quiet --retry=5 --pidfile $PIDFILE --name $NAME
RETVAL="$?"
# Return if daemon could not be stopped
# If do_reload() is not implemented then leave this commented out
# and leave 'force-reload' as an alias for 'restart'.
#
- log_daemon_msg "Reloading $DESC" "$NAME"
- do_reload
- log_end_msg $?
+ # our reload makes a new PID. systemd doesn't allow it. MP-620
+ if test -n "$_use_systemctl"; then
+ log_daemon_msg "Using systemd. Not reloading $DESC" "$NAME"
+ log_end_msg 0
+ else
+ log_daemon_msg "Reloading $DESC" "$NAME"
+ do_reload
+ log_end_msg $?
+ fi
;;
restart)
#
;;
esac
;;
+ checkconfig)
+ $DAEMON -t $DAEMON_OPTS > /dev/null || exit 2
+ exit 0
+ ;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;