summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2009-02-11 16:06:04 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2009-02-11 16:11:49 -0500
commit946c2daf3f654475e767ae98e52cbcd69e2c3320 (patch)
tree261b4e68a82866821237f3fff3beea98dfebbb76 /data
parente0d9cc359b3099307067107b59ec691418e280b8 (diff)
downloadConsoleKit2-946c2daf3f654475e767ae98e52cbcd69e2c3320.tar.gz
add example upstart events for logging
These can be used to add system start/stop/restart logging but hooking into Upstart event mechanism.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am3
-rw-r--r--data/ck-log-system-restart8
-rw-r--r--data/ck-log-system-start8
-rw-r--r--data/ck-log-system-stop8
4 files changed, 27 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index ca51570..fb245b7 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -27,6 +27,9 @@ edit = sed \
-e 's|@CONSOLE_KIT_PID_FILE[@]|$(CONSOLE_KIT_PID_FILE)|g'
EXTRA_DIST = \
+ ck-log-system-restart \
+ ck-log-system-start \
+ ck-log-system-stop \
$(dbusconf_DATA) \
$(seat_DATA) \
$(service_in_files) \
diff --git a/data/ck-log-system-restart b/data/ck-log-system-restart
new file mode 100644
index 0000000..03c2792
--- /dev/null
+++ b/data/ck-log-system-restart
@@ -0,0 +1,8 @@
+# Upstart event
+# ck-log-system-restart - write system restart to log
+#
+
+start on runlevel 6
+
+console output
+exec /usr/sbin/ck-log-system-restart
diff --git a/data/ck-log-system-start b/data/ck-log-system-start
new file mode 100644
index 0000000..2088265
--- /dev/null
+++ b/data/ck-log-system-start
@@ -0,0 +1,8 @@
+# Upstart event
+# ck-log-system-start - write system start to log
+#
+
+start on startup
+
+console output
+exec /usr/sbin/ck-log-system-start
diff --git a/data/ck-log-system-stop b/data/ck-log-system-stop
new file mode 100644
index 0000000..1bb978c
--- /dev/null
+++ b/data/ck-log-system-stop
@@ -0,0 +1,8 @@
+# Upstart event
+# ck-log-system-stop - write system stop to log
+#
+
+start on runlevel 0
+
+console output
+exec /usr/sbin/ck-log-system-stop