sudo cp service-ubuntu.sh /etc/init.d/gitblit
sudo update-rc.d gitblit defaults
man update-rc.d
Debian Policy Manual
/etc/init.d/skeleton
insserv(8), sysv-rc-conf(8), bum(8), init(8).
/etc/init.d/
/etc/rc?.d/
managed by update-rc.d
/usr/sbin/update-rc.d
UPDATE-RC.D(8) sysv-rc
the default mode where dependency and runlevel information in the init.d script
LSB comment header is used instead.
怎样查看System Manager's Manual
update-rc.d [-n] [-f] name remove