forked from pool/hiawatha
Marcus Rueckert
0f7c144df9
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
53 lines
928 B
Bash
53 lines
928 B
Bash
#!/bin/sh
|
|
# hiawatha: Starts the hiawatha web server
|
|
#
|
|
# description: Hiawatha web server
|
|
# processname: hiawatha
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: hiawatha http-server
|
|
# Required-Start: $network
|
|
# Required-Stop: $network
|
|
# 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
|