Merge lp:~xnox/ubuntu/vivid/upstart/fix-rotate-logs into lp:ubuntu/vivid/upstart

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 1598
Proposed branch: lp:~xnox/ubuntu/vivid/upstart/fix-rotate-logs
Merge into: lp:ubuntu/vivid/upstart
Diff against target: 68 lines (+25/-7)
3 files modified
debian/changelog (+11/-0)
debian/control (+2/-2)
debian/upstart-bin.upstart.cron.daily (+12/-5)
To merge this branch: bzr merge lp:~xnox/ubuntu/vivid/upstart/fix-rotate-logs
Reviewer Review Type Date Requested Status
Martin Pitt Needs Information
James Hunt Pending
Ubuntu branches Pending
Review via email: mp+246052@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Looks good to me, thanks!

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

BTW, how does emitting ":sys:*" events go along with https://code.launchpad.net/~xnox/upstart/no-classes/+merge/245948 ? I thought they should drop the :sys prefix now?

review: Needs Information
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@pitti:
I'm going for a mix here.
udev-bridge is moving from system-init -> session-init, thus dropping :sys: prefix.
local-bridge will stay running under system-init (either systemd or upstart), thus will keep :sys: prefix
rotate-logs emitage moved from system-init -> session-init, thus dropps :sys: prefix.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2014-11-29 11:39:41 +0000
+++ debian/changelog 2015-01-11 01:30:11 +0000
@@ -1,3 +1,14 @@
1upstart (1.13.2-0ubuntu6) UNRELEASED; urgency=medium
2
3 * debian/upstart-bin.upstart.cron.daily: Emit ":sys:rotate-logs" event
4 direct into session init, by-passing system upstart & session
5 event-bridge. This way session logs will be rotated, even upstart is
6 not system init.
7 * debian/control: make upstart-monitor & upstart-dconf-bridge be
8 installable with just session init, upstart-bin.
9
10 -- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Sun, 11 Jan 2015 01:15:34 +0000
11
1upstart (1.13.2-0ubuntu5) vivid; urgency=medium12upstart (1.13.2-0ubuntu5) vivid; urgency=medium
213
3 * debian/xsession.d/99upstart: Add support for GNOME Flashback14 * debian/xsession.d/99upstart: Add support for GNOME Flashback
415
=== modified file 'debian/control'
--- debian/control 2014-11-20 06:57:48 +0000
+++ debian/control 2015-01-11 01:30:11 +0000
@@ -48,7 +48,7 @@
48Architecture: all48Architecture: all
49Section: utils49Section: utils
50Priority: optional50Priority: optional
51Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, upstart (>= 1.7), python3-dbus51Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, upstart-bin (>= 1.7), python3-dbus
52Recommends: python3-gi52Recommends: python3-gi
53Description: event monitor for upstart53Description: event monitor for upstart
54 This package contains a utility that may be run both as a54 This package contains a utility that may be run both as a
@@ -60,7 +60,7 @@
60Architecture: any60Architecture: any
61Section: utils61Section: utils
62Priority: optional62Priority: optional
63Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, upstart (>= 1.10)63Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, upstart-bin (>= 1.10)
64Description: DConf bridge for upstart64Description: DConf bridge for upstart
65 This package contains a bridge that allows upstart jobs to react when65 This package contains a bridge that allows upstart jobs to react when
66 DConf/gsettings keys are changed.66 DConf/gsettings keys are changed.
6767
=== modified file 'debian/upstart-bin.upstart.cron.daily'
--- debian/upstart-bin.upstart.cron.daily 2014-09-30 08:58:51 +0000
+++ debian/upstart-bin.upstart.cron.daily 2015-01-11 01:30:11 +0000
@@ -1,11 +1,18 @@
1#!/bin/sh1#!/bin/sh
2# Emit an Upstart system event, that will propagate to the Session Inits2
3# via the upstart-event-bridge(8), requesting that the Session Inits3# For each Upstart Session Init, emit ":sys:rotate-logs" events, requesting
4# rotate their logs.4# that the# session Inits rotate their logs. There is no user-daily
5# cron.
6#
7# Doing it this way does not rely on System Upstart, nor
8# upstart-event-bridge(8) running in the Session Init.
5#9#
6# Note that system-level Upstart logs are handled separately using a10# Note that system-level Upstart logs are handled separately using a
7# logrotate script.11# logrotate script.
812
9/sbin/initctl version >/dev/null 2>&1 || exit 013[ -x /sbin/initctl ] || exit 0
1014
11/sbin/initctl emit rotate-logs15for session in /run/user/*/upstart/sessions/*
16do
17 env $(cat $session) /sbin/initctl emit :sys:rotate-logs >/dev/null 2>&1 || true
18done

Subscribers

People subscribed via source and target branches