mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Log rotation is already handled by WatchedFileHandler (fixbug #137)
This commit is contained in:
parent
96f9ca9961
commit
6865456234
2 changed files with 0 additions and 16 deletions
3
debian/logrotate
vendored
3
debian/logrotate
vendored
|
@ -5,7 +5,4 @@
|
||||||
compress
|
compress
|
||||||
notifempty
|
notifempty
|
||||||
missingok
|
missingok
|
||||||
postrotate
|
|
||||||
invoke-rc.d yunohost-api rotate >/dev/null 2>&1
|
|
||||||
endscript
|
|
||||||
}
|
}
|
||||||
|
|
13
debian/yunohost-api.init
vendored
13
debian/yunohost-api.init
vendored
|
@ -80,14 +80,6 @@ do_reload() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# Function called when rotating logs
|
|
||||||
#
|
|
||||||
do_rotate() {
|
|
||||||
start-stop-daemon --stop --signal USR1 --quiet --pidfile $PID --name $NAME
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
|
@ -131,11 +123,6 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
rotate)
|
|
||||||
log_daemon_msg "Re-opening $DESC log files" "$NAME"
|
|
||||||
do_rotate
|
|
||||||
log_end_msg $?
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload}" >&2
|
echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload}" >&2
|
||||||
exit 3
|
exit 3
|
||||||
|
|
Loading…
Add table
Reference in a new issue