]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Add cpusets
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 11 Sep 2011 19:53:09 +0000 (19:53 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 11 Sep 2011 19:53:09 +0000 (19:53 +0000)
svn-id: @12342

init/cpusets.conf [new file with mode: 0644]

diff --git a/init/cpusets.conf b/init/cpusets.conf
new file mode 100644 (file)
index 0000000..a57c65b
--- /dev/null
@@ -0,0 +1,25 @@
+description "Creates/Removes all cpu sets configured to start at boot time."
+
+start on pld.sysinit-done
+stop on pld.shutdown-started
+
+console output
+task
+
+pre-start script
+       # test that cpusets are configured
+       . /etc/sysconfig/system
+       if [ "${CPUSETS:-no}" = "no" ]; then
+               exit 3
+       fi
+end script
+
+script
+       export USE_UPSTART=no
+       exec /etc/rc.d/init.d/cpusets start
+end script
+
+pre-stop script
+       export USE_UPSTART=no
+       exec /etc/rc.d/init.d/cpusets stop
+end script
This page took 0.038686 seconds and 4 git commands to generate.