#!/bin/sh # # /etc/rc.d/rc.httpd # # Start/stop/restart the Apache web server. # # To make Apache start automatically at boot, make this # file executable: chmod 755 /etc/rc.d/rc.httpd # case "$1" in 'start') /usr/local/apache/bin/apachectl start ;; 'stop') /usr/local/apache/bin/apachectl stop ;; 'restart') /usr/local/apache/bin/apachectl restart ;; *) echo "usage $0 start|stop|restart" ;; esac