diff options
Diffstat (limited to 'gentoo/files')
-rw-r--r-- | gentoo/files/bcfg2-client | 26 | ||||
-rw-r--r-- | gentoo/files/bcfg2-server | 24 | ||||
-rw-r--r-- | gentoo/files/digest-bcfg2-0.6.9.2 | 1 |
3 files changed, 51 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 +} 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 |