Ubuntu Pastebin

Paste from djledkov at Fri, 16 Jan 2015 18:30:33 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
=== modified file 'debian/upstart-bin.upstart.cron.daily'
--- debian/upstart-bin.upstart.cron.daily	2015-01-11 01:18:02 +0000
+++ debian/upstart-bin.upstart.cron.daily	2015-01-16 18:30:28 +0000
@@ -1,8 +1,7 @@
 #!/bin/sh
 
-# For each Upstart Session Init, emit ":sys:rotate-logs" events, requesting
-# that the# session Inits rotate their logs. There is no user-daily
-# cron.
+# For each Upstart Session Init, emit "rotate-logs" event, requesting
+# the session Inits to rotate their logs. There is no user-daily cron.
 #
 # Doing it this way does not rely on System Upstart, nor
 # upstart-event-bridge(8) running in the Session Init.
@@ -14,5 +13,5 @@
 
 for session in /run/user/*/upstart/sessions/*
 do
-    env $(cat $session) /sbin/initctl emit :sys:rotate-logs >/dev/null 2>&1 || true
+    env $(cat $session) /sbin/initctl emit rotate-logs >/dev/null 2>&1 || true
 done

=== modified file 'debian/user-conf/logrotate.conf'
--- debian/user-conf/logrotate.conf	2014-09-30 09:00:01 +0000
+++ debian/user-conf/logrotate.conf	2015-01-16 18:28:45 +0000
@@ -7,7 +7,7 @@
 
 description "Rotate job log files"
 
-start on startup or :sys:rotate-logs
+start on startup or :sys:rotate-logs or rotate-logs
 
 task
 
Download as text