ubuntu 当中添加开机启动服务

简单粗暴地方法:

#vi xxx-service.sh

#mv xxx-service.sh /etc/init.d/

#cd /etc/init.d

#update-rc.d ping-4002 defaults 98

删除时:

#cd /etc/init.d

#update-rc.d -f xxx-service.sh remove

原文地址:https://www.cnblogs.com/superniaoren/p/5178375.html