summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/cherokee/files/cherokee-initd-0.11')
-rw-r--r--www-servers/cherokee/files/cherokee-initd-0.1134
1 files changed, 34 insertions, 0 deletions
diff --git a/www-servers/cherokee/files/cherokee-initd-0.11 b/www-servers/cherokee/files/cherokee-initd-0.11
new file mode 100644
index 0000000..b49f347
--- /dev/null
+++ b/www-servers/cherokee/files/cherokee-initd-0.11
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/files/cherokee-initd-0.11,v 1.1 2008/12/26 09:04:43 bass Exp $
+
+PIDFILE=/var/run/cherokee.pid
+
+opt="reload"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Cherokee Web Server"
+ start-stop-daemon --start -b --pidfile ${PIDFILE} \
+ --exec /usr/sbin/cherokee
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cherokee Web Server"
+ start-stop-daemon --stop --pidfile ${PIDFILE} \
+ --exec /usr/sbin/cherokee
+ eend $?
+}
+
+reload() {
+ ebegin "Restarting Cherokee Web Server and closing all open connections"
+ start-stop-daemon --stop --pidfile ${PIDFILE} \
+ --signal USR1
+ eend $?
+}
+