summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/lingerd/files/lingerd.rc')
-rwxr-xr-xnet-www/lingerd/files/lingerd.rc28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-www/lingerd/files/lingerd.rc b/net-www/lingerd/files/lingerd.rc
new file mode 100755
index 000000000000..f8bbb32114d0
--- /dev/null
+++ b/net-www/lingerd/files/lingerd.rc
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/lingerd/files/lingerd.rc,v 1.1 2005/01/08 23:21:48 hollow Exp $
+
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting lingerd"
+ /sbin/start-stop-daemon -c apache -o --quiet --start --startas /usr/bin/lingerd --pidfile /var/run/lingerd/lingerd.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lingerd"
+ start-stop-daemon -o --quiet --stop --pidfile /var/run/lingerd/lingerd.pid
+ eend $?
+}
+
+restart() {
+ ebegin "restarting"
+ svc_stop
+ svc_start
+
+}