1
0
forked from pool/hiawatha
hiawatha/hiawatha-httpd.init
Marcus Rueckert 0f7c144df9 Accepting request 32890 from home:drcux
Copy from home:drcux/hiawatha via accept of submit request 32890 revision 6.
Request was accepted with message:
reviewed

OBS-URL: https://build.opensuse.org/request/show/32890
OBS-URL: https://build.opensuse.org/package/show/server:http/hiawatha?expand=0&rev=30
2010-02-22 14:16:27 +00:00

55 lines
999 B
Bash

#!/bin/sh
# hiawatha: Starts the hiawatha web server
#
# description: Hiawatha web server
# processname: hiawatha
### BEGIN INIT INFO
# Provides: hiawatha-httpd http-server
# Required-Start: $network
# Required-Stop: $network
# Should-Start: hiawatha-fastcgi
# Should-Stop: hiawatha-fastcgi
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Hiawatha web server
# Description: Hiawatha web server
### END INIT INFO
. /etc/rc.status
HIAWATHABIN=/usr/sbin/hiawatha
case "$1" in
start)
echo -n "Starting hiawatha daemon"
startproc -f $HIAWATHABIN
rc_status -v
;;
stop)
echo -n "Stopping hiawatha daemon"
killproc -TERM $HIAWATHABIN
rc_status -v
;;
status)
echo -n "Checking for hiawatha"
checkproc $HIAWATHABIN
rc_status -v
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 (start|stop|restart|status)"
exit 1
;;
esac
rc_exit