- 论坛徽章:
- 0
|
操作系统是Solaris 5.8
写了脚本放在/etc/init.d, 运行 #/etc/init.d/apache start 可以启动和关闭,
然后ln -s /etc/init.d/apache /etc/rc2.d/S99apache
服务器重启后,apache没有起来,请高手指教,谢谢!
脚本如下:
#!/sbin/sh
#
#Generic start/stop proceduce
#
#jUST test IBMHTTP can start/stop automatically.
case "$1" in
'start')
if [ -x /opt/IBMHTTP/bin/apachectl ]
then
/opt/IBMHTTP/bin/apachectl start
fi
;;
'stop')
if [ -x /opt/IBMHTTP/bin/apachectl ]
then
/opt/IBMHTTP/bin/apachectl stop
fi
;;
*)
echo "Usage: /etc/init.d/apache{ start | stop }"
;;
esac |
|