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
47 lines
758 B
Bash
47 lines
758 B
Bash
#!/bin/sh
|
|
# hiawatha: Starts the hiawatha web server
|
|
#
|
|
# description: Hiawatha fastcgi wrapper
|
|
# processname: php-fcgi
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: hiawatha-fastcgi
|
|
# Required-Start: $network
|
|
# Required-Stop: $network
|
|
# Default-Start: 3 5
|
|
# Default-Stop: 0 1 2 6
|
|
# Short-Description: Hiawatha fastcgi wrapper
|
|
# Description: Hiawatha fastcgi wrapper
|
|
### END INIT INFO
|
|
|
|
. /etc/rc.status
|
|
|
|
BIN=/usr/sbin/php-fcgi
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
startproc -f $BIN
|
|
rc_status -v
|
|
;;
|
|
|
|
stop)
|
|
if [ -e /var/run/php-fcgi.pid ]
|
|
then $BIN -k
|
|
fi
|
|
rc_status -v
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 (start|stop|restart)"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|
|
rc_exit
|