Skip to content

Commit

Permalink
[fix] Log rotation is already handled by WatchedFileHandler (fixbug Y…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelebleu committed Dec 29, 2015
1 parent 96f9ca9 commit 6865456
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions debian/logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@
compress
notifempty
missingok
postrotate
invoke-rc.d yunohost-api rotate >/dev/null 2>&1
endscript
}
13 changes: 0 additions & 13 deletions debian/yunohost-api.init
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ do_reload() {
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
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
Expand Down Expand Up @@ -131,11 +123,6 @@ case "$1" in
;;
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
exit 3
Expand Down

0 comments on commit 6865456

Please sign in to comment.