summaryrefslogtreecommitdiffstats
path: root/gentoo/files/bcfg2-client
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo/files/bcfg2-client')
-rw-r--r--gentoo/files/bcfg2-client26
1 files changed, 26 insertions, 0 deletions
diff --git a/gentoo/files/bcfg2-client b/gentoo/files/bcfg2-client
index e69de29bb..1d903c737 100644
--- a/gentoo/files/bcfg2-client
+++ b/gentoo/files/bcfg2-client
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+#
+# bcfg - bcfg configuration client
+#
+#
+
+depend () {
+ need net
+}
+
+start () {
+ ebegin "Starting bcfg"
+ if [ -e /etc/bcfg.dont_run ]; then
+ einfo "bcfg does not need to run"
+ eend 0
+ else
+ start-stop-daemon --start --quiet \
+ --startas /usr/sbin/bcfg.py -- -q -s
+ eend $? "Failed to start bcfg"
+ fi
+}
+stop () {
+ ebegin "Stopping bcfg"
+ /bin/true
+ eend 0
+}