summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2008-07-03 03:12:25 +0000
committerJeremy Olexa <darkside@gentoo.org>2008-07-03 03:12:25 +0000
commit4e3066eb7381bb9775e634d33237a73b93c74ba3 (patch)
tree08f848ad0225b46913a308657aa1440e0725fe9c /app-admin/bcfg2/files
parentadd server USE flag for app-admin/bcfg2 in use.local.desc (diff)
downloadgentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.tar.gz
gentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.tar.bz2
gentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.zip
Initial commit. ebuild written by Michael Jinks <mjinks@uchicago.edu>, proxied maintainer. bug #164467
(Portage version: 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.rc23
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"
+}