服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(18)

Centos5.2配置LAMP与Centos5.3配置LAMP(18)

2019-10-11 14:12Centos教程网 Centos

RETVAL=0 # The semantics of these two functions differ from the way apachectl does # things attempting to start while running is a failure, and shutdown # when not running is also a failure. So we jus

RETVAL=0 




# The semantics of these two functions differ from the way apachectl does 
# things — attempting to start while running is a failure, and shutdown 
# when not running is also a failure. So we just do it the way init scripts 
# are expected to behave here. 
start() { 
echo -n $”Starting $prog: “ 
daemon $httpd $OPTIONS 
RETVAL=$? 
echo 
[ $RETVAL = 0 ] && touch /var/lock/subsys/httpd 
return $RETVAL 

stop() { 
echo -n $”Stopping $prog: “ 
killproc $httpd 
RETVAL=$? 
echo 
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd $pid 

reload() { 
echo -n $”Reloading $prog: “ 

延伸 · 阅读

精彩推荐