update-rc.d: error: XXX Default-Start contains no runlevels, aborting.
root@hm-saas-db:/etc/init.d# update-rc.d confluence disable update-rc.d: error: confluence Default-Start contains no runlevels, aborting. root@hm-saas-db:/etc/init.d# more atlbitbucket
编辑/etc/init.d下的你的服务,头部#!/usr/bin/env bash 下添加如下内容:
### BEGIN INIT INFO # Provides: XXX # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start XXX daemon at boot time # Description: Start XXX daemon at boot time ### END INIT INFO
例如:
再次执行
update-rc.d confluence disable
结合rrconf工具命令查看,启动项列表