打赏

星辰大海ゞ

That which does not kill us makes us stronger!

导航

# chkconfig:

在/etc/init.d/* 中的各服务文件开始处都会出现以下一行的相似字符,在此进行解释一下:

# chkconfig: 345 85 15

# description: this is myservice

 

345代表的是设置在那个level中是on的,如果希望全部off, 则使用- , #chkconfig:  -  85 15

85是启动顺序号

15是关闭顺序号

-----------------------------------------------------------------------------------

在相应服务脚本添加完毕对应信息后即可   chkconfig –add  myservice 创建系统服务

然后就可以使用service 来 start or restart

 

范例:chkconfig --level 345 myservice  on

 

posted on 2015-06-30 10:23  星辰大海ゞ  阅读(265)  评论(0编辑  收藏  举报