首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

登记linux服务

2012-08-16 
注册linux服务注册linux服务模板#! /bin/sh# chkconfig: 2345 85 15 ### BEGIN INIT INFO# Provides:?????

注册linux服务

注册linux服务模板

#! /bin/sh
# chkconfig: 2345 85 15
### BEGIN INIT INFO
# Provides:?????? XXXX
# Required-Start:??? $remote_fs $network
# Required-Stop:???? $remote_fs $network
# Default-Start:???? 2 3 4 5
# Default-Stop:????? 0 1 6
# Description:??? XXXX
### END INIT INFO

start(){
??
}
stop(){
?
}
restart(){
??? start
??? stop
}
case "$1" in
? start)
? #start
? start
? ;;
? stop)
? stop
? ;;
esac
exit 0

?

1、# chkconfig: 2345 85 15,如果没有这一行,注册服务总是不成功,一直报default start等没有解决

热点排行