diff options
author | William Jon McCann <jmccann@redhat.com> | 2009-02-11 16:06:04 -0500 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2009-02-11 16:11:49 -0500 |
commit | 946c2daf3f654475e767ae98e52cbcd69e2c3320 (patch) | |
tree | 261b4e68a82866821237f3fff3beea98dfebbb76 /data | |
parent | e0d9cc359b3099307067107b59ec691418e280b8 (diff) | |
download | ConsoleKit2-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.am | 3 | ||||
-rw-r--r-- | data/ck-log-system-restart | 8 | ||||
-rw-r--r-- | data/ck-log-system-start | 8 | ||||
-rw-r--r-- | data/ck-log-system-stop | 8 |
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 |