From e92cd59a4c5da1e95612097cf2a5ebe94c1d65b1 Mon Sep 17 00:00:00 2001 From: Zach Lowry Date: Fri, 15 Jul 2005 16:13:42 +0000 Subject: (Logical change 1.268) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1090 ce84e21b-d406-0410-9b95-82705330c041 --- gentoo/files/bcfg2-client | 26 ++++++++++++++++++++++++++ gentoo/files/bcfg2-server | 24 ++++++++++++++++++++++++ gentoo/files/digest-bcfg2-0.6.9.2 | 1 + 3 files changed, 51 insertions(+) (limited to 'gentoo/files') 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 +} diff --git a/gentoo/files/bcfg2-server b/gentoo/files/bcfg2-server index e69de29bb..cb7848350 100644 --- a/gentoo/files/bcfg2-server +++ b/gentoo/files/bcfg2-server @@ -0,0 +1,24 @@ +#!/sbin/runscript +# +# bcfgd - bcfg configuration daemon +# +# + +depend () { + need net +} + +start () { + ebegin "Starting bcfgd" + start-stop-daemon --start --quiet --pidfile /var/run/bcfgd.pid \ + --startas /usr/sbin/bcfgd.py -- --daemon=/var/run/bcfgd.pid + eend $? "Failed to start bcfgd" +} + +stop () { + ebegin "Stopping bcfgd" + start-stop-daemon --stop --quiet --pidfile /var/run/bcfgd.pid \ + --signal INT + eend $? "Failed to stop bcfgd" + [ -f /var/run/bcfgd.pid ] && rm -f /var/run/bcfgd.pid +} diff --git a/gentoo/files/digest-bcfg2-0.6.9.2 b/gentoo/files/digest-bcfg2-0.6.9.2 index e69de29bb..88923ff68 100644 --- a/gentoo/files/digest-bcfg2-0.6.9.2 +++ b/gentoo/files/digest-bcfg2-0.6.9.2 @@ -0,0 +1 @@ +MD5 1e2585a3655b12123098d721889f7f2a bcfg2-0.6.9.2.tar.gz 70814 -- cgit v1.2.3-1-g7c22