]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added upstart jobs for shutdown and reboot.
authorSchantl Stefan <Stevee@ipfire.org>
Mon, 10 Aug 2009 18:48:02 +0000 (20:48 +0200)
committerSchantl Stefan <Stevee@ipfire.org>
Mon, 10 Aug 2009 18:48:02 +0000 (20:48 +0200)
src/initscripts/core/reboot.conf [new file with mode: 0644]
src/initscripts/core/shutdown.conf [new file with mode: 0644]
src/rootfiles/core/initscripts

diff --git a/src/initscripts/core/reboot.conf b/src/initscripts/core/reboot.conf
new file mode 100644 (file)
index 0000000..f8802ba
--- /dev/null
@@ -0,0 +1,11 @@
+description            "Shutdown the system"
+author                 "IPFire Team"
+
+console output
+
+task
+exec initctl emit --no-wait shutdown
+
+post-stop script
+       reboot -d -f -i
+end script
diff --git a/src/initscripts/core/shutdown.conf b/src/initscripts/core/shutdown.conf
new file mode 100644 (file)
index 0000000..f7711b4
--- /dev/null
@@ -0,0 +1,11 @@
+description            "Shutdown the system"
+author                 "IPFire Team"
+
+console output
+
+task
+exec initctl emit --no-wait shutdown
+
+post-stop script
+       halt -p
+end script
index c5d4ffe14b7a30d5829c57c6c40610e777a4d59a..4945ee292603b2c90770b4cb6bf4c7c935316659 100644 (file)
@@ -5,6 +5,8 @@ etc/init/load-modules.conf
 etc/init/loopback.conf
 etc/init/mount-kernel-filesystems.conf
 etc/init/mountfs.conf
+etc/init/reboot.conf
+etc/init/shutdown.conf
 etc/init/swap.conf
 etc/init/sysctl.conf
 etc/init/tty1.conf