diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2008-07-03 03:12:25 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2008-07-03 03:12:25 +0000 |
commit | eb6a1b2ff391ddd9a0159a2dc5569dac752a8ae0 (patch) | |
tree | bee46da0057d05a52a8856d0c2d233c9c8614abe /app-admin/bcfg2/files | |
parent | add server USE flag for app-admin/bcfg2 in use.local.desc (diff) | |
download | historical-eb6a1b2ff391ddd9a0159a2dc5569dac752a8ae0.tar.gz historical-eb6a1b2ff391ddd9a0159a2dc5569dac752a8ae0.tar.bz2 historical-eb6a1b2ff391ddd9a0159a2dc5569dac752a8ae0.zip |
Initial commit. ebuild written by Michael Jinks <mjinks@uchicago.edu>, proxied maintainer. bug #164467
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.22-gentoo-r2 i686
Diffstat (limited to 'app-admin/bcfg2/files')
-rw-r--r-- | app-admin/bcfg2/files/bcfg2-server.rc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-admin/bcfg2/files/bcfg2-server.rc b/app-admin/bcfg2/files/bcfg2-server.rc new file mode 100644 index 000000000000..92e4c5c10d5d --- /dev/null +++ b/app-admin/bcfg2/files/bcfg2-server.rc @@ -0,0 +1,23 @@ +#!/sbin/runscript +# +# bcfgd - 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" +} |