summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/cherokee/files')
-rw-r--r--www-servers/cherokee/files/cherokee-initd-0.99.2331
1 files changed, 31 insertions, 0 deletions
diff --git a/www-servers/cherokee/files/cherokee-initd-0.99.23 b/www-servers/cherokee/files/cherokee-initd-0.99.23
new file mode 100644
index 000000000000..2ffdde46a1ab
--- /dev/null
+++ b/www-servers/cherokee/files/cherokee-initd-0.99.23
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opt="reload"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Cherokee Web Server"
+ start-stop-daemon --start -b \
+ --exec /usr/sbin/cherokee
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cherokee Web Server"
+ start-stop-daemon --stop \
+ --exec /usr/sbin/cherokee
+ eend $?
+}
+
+reload() {
+ ebegin "Restarting Cherokee Web Server and closing all open connections"
+ start-stop-daemon --stop \
+ --signal USR1
+ eend $?
+}
+