Revision 35922c10
Added by Dmitri Dolguikh about 8 years ago
debian/precise/foreman-proxy/init.d | ||
---|---|---|
return 0
|
||
}
|
||
|
||
do_logrotate() {
|
||
start-stop-daemon --stop --signal USR1 --quiet --pidfile $PIDFILE
|
||
return $?
|
||
}
|
||
|
||
case "$1" in
|
||
start)
|
||
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
|
||
... | ... | |
#do_reload
|
||
#log_end_msg $?
|
||
#;;
|
||
logrotate)
|
||
log_daemon_msg "Rotating logs $DESC" "$NAME"
|
||
do_logrotate
|
||
log_end_msg $?
|
||
;;
|
||
restart|force-reload)
|
||
#
|
||
# If the "reload" option is implemented then remove the
|
||
... | ... | |
esac
|
||
;;
|
||
*)
|
||
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
|
||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload|logrotate}" >&2
|
||
exit 3
|
||
;;
|
||
esac
|
Also available in: Unified diff
refs #12295 - uses USR1 signal to handle log rotation
Closes GH-1060