summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jinks <mjinks@uchicago.edu>2007-04-05 18:21:14 +0000
committerMichael Jinks <mjinks@uchicago.edu>2007-04-05 18:21:14 +0000
commit054ae0c3fa9cd9babbb6bf477032385478550a07 (patch)
tree4c15d3333463327231a19922793137681e418fc0
parent04d627a9c9c5c335c2e05c4dabfdaed635b613ed (diff)
downloadbcfg2-054ae0c3fa9cd9babbb6bf477032385478550a07.tar.gz
bcfg2-054ae0c3fa9cd9babbb6bf477032385478550a07.tar.bz2
bcfg2-054ae0c3fa9cd9babbb6bf477032385478550a07.zip
Server-side init script
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3010 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--gentoo/files/bcfg2-server.rc22
1 files changed, 22 insertions, 0 deletions
diff --git a/gentoo/files/bcfg2-server.rc b/gentoo/files/bcfg2-server.rc
new file mode 100644
index 000000000..14f0119ac
--- /dev/null
+++ b/gentoo/files/bcfg2-server.rc
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+#
+# bcfg2-server - bcfg configuration daemon
+#
+
+depend () {
+ need net
+}
+
+start () {
+ ebegin "Starting bcfg2-server"
+ start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \
+ --startas /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
+ eend $? "Failed to start bcfg2-server"
+}
+
+stop () {
+ ebegin "Stopping bcfg2-server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \
+ --signal INT
+ eend $? "Failed to stop bcfg2-server"
+}