これは
http://slackware.osuosl.org/slackware_source/n/httpd/rc.httpd
より 頂いたものを 個猫 用に 勝手に修正したものです
#!/bin/sh
#
# /etc/rc.d/rc.httpd
#
# Start/stop/restart/graceful[ly restart]/graceful[ly]-stop
# the Apache (httpd) web server.
#
# To make Apache start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.httpd
#
# For information on these options, "man apachectl".
# 強引に追加 とにかく これを起動する時に 削除する
killall httpd
rm -f /var/data/www/apache2/logs/*.pid
# 強引に追加 具体的には 以下のファイルを 削除する
# /var/data/www/apache2/logs/httpd.pid
# 2009年 1月20日 (火) 21:23:07 JST 作成 確認
# 元の ものの 入手先 は 以下 所に存在している。
# http://slackware.osuosl.org/slackware_source/n/httpd/rc.httpd
# apachectl の 場所にあわせて 変更している
# /usr/sbin/apachectl を /var/data/www/apache2/bin/apachectl
case "$1" in
'start')
/var/data/www/apache2/bin/apachectl -k start
;;
'stop')
/var/data/www/apache2/bin/apachectl -k stop
killall httpd
rm -f /var/run/httpd/*.pid
;;
'restart')
/var/data/www/apache2/bin/apachectl -k restart
;;
'graceful')
/var/data/www/apache2/bin/apachectl -k graceful
;;
'graceful-stop')
/var/data/www/apache2/bin/apachectl -k graceful-stop
;;
*)
echo "Usage: $0 {start|stop|restart|graceful|graceful-stop}"
;;
esac
にゃんたろう 拝!
2009年 1月20日 (火) 21:04:34 JST 作成