#!/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