summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Perlbal/files/perlbal_init.d_1.58')
-rwxr-xr-xdev-perl/Perlbal/files/perlbal_init.d_1.5825
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-perl/Perlbal/files/perlbal_init.d_1.58 b/dev-perl/Perlbal/files/perlbal_init.d_1.58
new file mode 100755
index 000000000000..13d01bc1de27
--- /dev/null
+++ b/dev-perl/Perlbal/files/perlbal_init.d_1.58
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# $Id$
+
+NAME="perlbal"
+BINARY="/usr/bin/perlbal"
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting $NAME"
+ # Add --pidfile when upstream supports PIDFILES
+ start-stop-daemon --start \
+ --exec ${BINARY} -- ${PERLBAL_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --stop --exec "${BINARY}"
+ eend $?
+}
+
+# vim: ft=gentoo-init-d: