Merge lp:~jamesodhunt/upstart/add-sample-session-jobs into lp:upstart

Proposed by James Hunt
Status: Merged
Merged at revision: 1508
Proposed branch: lp:~jamesodhunt/upstart/add-sample-session-jobs
Merge into: lp:upstart
Diff against target: 81 lines (+47/-0)
5 files modified
ChangeLog (+4/-0)
extra/Makefile.am (+6/-0)
extra/conf-session/re-exec.conf (+6/-0)
extra/conf-session/upstart-event-bridge.conf (+15/-0)
extra/conf-session/upstart-file-bridge.conf (+16/-0)
To merge this branch: bzr merge lp:~jamesodhunt/upstart/add-sample-session-jobs
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Approve
Review via email: mp+175576@code.launchpad.net

Description of the change

* extra/conf-session/: Addition of example jobs for Session Inits.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

please merge this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2013-07-17 14:21:18 +0000
+++ ChangeLog 2013-07-18 14:14:31 +0000
@@ -1,3 +1,7 @@
12013-07-18 James Hunt <james.hunt@ubuntu.com>
2
3 * extra/conf-session/: Addition of example jobs for Session Inits.
4
12013-07-17 James Hunt <james.hunt@ubuntu.com>52013-07-17 James Hunt <james.hunt@ubuntu.com>
26
3 * init/tests/test_state.c:7 * init/tests/test_state.c:
48
=== modified file 'extra/Makefile.am'
--- extra/Makefile.am 2013-07-05 10:03:36 +0000
+++ extra/Makefile.am 2013-07-18 14:14:31 +0000
@@ -15,6 +15,12 @@
1515
16initdir = $(sysconfdir)/init16initdir = $(sysconfdir)/init
1717
18sessionsdir = $(datadir)/upstart/sessions
19
20dist_sessions_DATA = \
21 conf-session/upstart-event-bridge.conf \
22 conf-session/upstart-file-bridge.conf \
23 conf-session/re-exec.conf
1824
19sbin_PROGRAMS = \25sbin_PROGRAMS = \
20 upstart-socket-bridge \26 upstart-socket-bridge \
2127
=== added directory 'extra/conf-session'
=== added file 'extra/conf-session/re-exec.conf'
--- extra/conf-session/re-exec.conf 1970-01-01 00:00:00 +0000
+++ extra/conf-session/re-exec.conf 2013-07-18 14:14:31 +0000
@@ -0,0 +1,6 @@
1description "Restart session init when system init restarts"
2author "Stéphane Graber <stgraber@ubuntu.com>"
3
4start on :sys:restarted
5
6exec dbus-send --type=method_call --address=$UPSTART_SESSION /com/ubuntu/Upstart com.ubuntu.Upstart0_6.Restart
07
=== added file 'extra/conf-session/upstart-event-bridge.conf'
--- extra/conf-session/upstart-event-bridge.conf 1970-01-01 00:00:00 +0000
+++ extra/conf-session/upstart-event-bridge.conf 2013-07-18 14:14:31 +0000
@@ -0,0 +1,15 @@
1# upstart-event-bridge - Bridge system upstarts events into session upstart
2#
3# This helper daemon receives system upstart events from the DBus system bus
4# and emits equivalent events (with a :sys:) prefix to the session bus
5
6description "Bridge Upstart system events into session Upstart"
7
8emits :sys:*
9
10start on started dbus
11stop on stopped dbus
12
13respawn
14
15exec upstart-event-bridge
016
=== added file 'extra/conf-session/upstart-file-bridge.conf'
--- extra/conf-session/upstart-file-bridge.conf 1970-01-01 00:00:00 +0000
+++ extra/conf-session/upstart-file-bridge.conf 2013-07-18 14:14:31 +0000
@@ -0,0 +1,16 @@
1# upstart-file-bridge - Bridge file events into upstart
2#
3# This helper daemon receives inotify(7) events and
4# emits equivalent Upstart events.
5
6description "Bridge file events into upstart"
7
8emits file
9
10start on startup
11stop on session-end
12
13expect daemon
14respawn
15
16exec upstart-file-bridge --daemon --user

Subscribers

People subscribed via source and target branches