使用update-rc.d:

设置自启动:

update-rc.d program defaults

 删除自启动:

update-rc.d -f program remove

 查看添加的自启动项:

cd /etc/rc*.d/
ls