return 0
}
+#
+# Function that sends a SIGUSR1 to the daemon/service
+#
+do_reopenlog() {
+ start-stop-daemon --stop --signal 10 --quiet --pidfile $PIDFILE
+ return 0
+}
+
_retcode=0
for ((i=0; i < $CONFIG_NUM; i++)); do
do_reload
log_end_msg $?
;;
+ reopenlog)
+ log_daemon_msg "Reopen logs for $DESC" "$NAME"
+ do_reopenlog
+ log_end_msg $?
+ ;;
restart)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
esac
;;
*)
- echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|reopenlog}" >&2
exit 3
;;
esac