Author: martin f. krafft <madduck@debian.org>

--- a/hibernate.sh
+++ b/hibernate.sh
@@ -876,7 +876,14 @@
 ParseOptions "$@"
 
 # Set a logfile if we need one.
-[ -n "$LOGFILE" ] && LOGPIPE="tee -a -i $LOGFILE"
+if [ -n "$LOGFILE" ]; then
+    if [ ! -f "$LOGFILE" ]; then
+	touch "$LOGFILE"
+	chmod 644 "$LOGFILE"
+	chown root:adm "$LOGFILE"
+    fi
+    LOGPIPE="tee -a -i $LOGFILE"
+fi
 
 # Redirect everything to a given VT if we've been given one
 if [ -n "$SWSUSPVT" ] && [ -c /dev/tty$SWSUSPVT ] ; then
--- a/logrotate.d-hibernate-script
+++ b/logrotate.d-hibernate-script
@@ -3,4 +3,5 @@
     rotate 5
     size 100k
     weekly
+    notifempty
 }
