]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
upstart for rc.local
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 5 Oct 2011 14:47:57 +0000 (14:47 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 5 Oct 2011 14:47:57 +0000 (14:47 +0000)
svn-id: @12363

init/Makefile.am
init/local.conf [new file with mode: 0644]
rc.d/init.d/local

index fc03e1be9949af2ce31a7bec9e639eec35a1d6dd..1c944cee90ffdf9ae4772d83871b22e5dd1d05fc 100644 (file)
@@ -3,6 +3,6 @@
 initdir = @initdir@
 
 init_DATA = random.conf rc.conf rcS-sulogin.conf rcS.conf udev.conf \
-       allowlogin.conf sys-chroots.conf cpusets.conf cryptsetup.conf
+       allowlogin.conf sys-chroots.conf cpusets.conf cryptsetup.conf local.conf
 
 EXTRA_DIST = $(init_DATA)
diff --git a/init/local.conf b/init/local.conf
new file mode 100644 (file)
index 0000000..f0d666c
--- /dev/null
@@ -0,0 +1,14 @@
+description "Invoke custom scripts at startup"
+
+start on stopped rc RUNLEVEL=[!06]
+
+console output
+task
+
+pre-start script
+       test -f /etc/rc.d/rc.local
+end script
+
+script
+       . /etc/rc.d/rc.local
+end script
index 01e2fe09cfd228454d19cff2c90536f403d4f9bc..5253976cb8911d4596faade5e9dfaadaf9fa2dc0 100755 (executable)
@@ -12,6 +12,8 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+upstart_controlled
+
 # See how we were called.
 case "$1" in
   start)
This page took 0.045501 seconds and 4 git commands to generate.