Fix logrotate too. That is logrotate will not rotate if
configuration is faulty.
# 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
;;
esac
;;
+ checkconfig)
+ $DAEMON -t $DAEMON_OPTS > /dev/null || exit 2
+ exit 0
+ ;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
compress
delaycompress
notifempty
+ prerotate
+ if [ -f /var/run/metaproxy.pid ]; then
+ /etc/init.d/metaproxy checkconfig > /dev/null
+
+ fi
+ endscript
postrotate
if [ -f /var/run/metaproxy.pid ]; then
/etc/init.d/metaproxy force-reload > /dev/null