From 68654562349199d92fc9247e8fe721a9016b33d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Tue, 29 Dec 2015 21:01:17 +0100 Subject: [PATCH] [fix] Log rotation is already handled by WatchedFileHandler (fixbug #137) --- debian/logrotate | 3 --- debian/yunohost-api.init | 13 ------------- 2 files changed, 16 deletions(-) diff --git a/debian/logrotate b/debian/logrotate index 0bc07ca59..4d1cc22df 100644 --- a/debian/logrotate +++ b/debian/logrotate @@ -5,7 +5,4 @@ compress notifempty missingok - postrotate - invoke-rc.d yunohost-api rotate >/dev/null 2>&1 - endscript } diff --git a/debian/yunohost-api.init b/debian/yunohost-api.init index 02a0560b7..3cda507e6 100755 --- a/debian/yunohost-api.init +++ b/debian/yunohost-api.init @@ -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" @@ -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