How do I manage my startup scripts?
You can do it in Many ways, manually or by using scripts or sysvconfig command.
sysvconfig interface in console looks like this :

I don’t find chkconfig command in Ubuntu/Debian. How do I add custom scripts to start up? Do I need to do it manually?
You can visit this link to understand how you can manage the scripts manually. chkconfig is not there in Ubuntu/Debian. Above mentioned sysvconfig is an alternative tool.
An another interesting command which lets you do this work is update-rc.d
usage: update-rc.d [-n] [-f]
remove
update-rc.d [-n]defaults [NN | sNN kNN]
update-rc.d [-n]start|stop NN runlvl [runlvl] […] .
-n: not really
-f: force
You can use this to quickly start/stop the system services at different runlevels.
For example: I wanted to enable apache on runlevel 2,3,4 and 5. This can be achieved as follows.
update-rc.d -f apache2 defaults 2,3,4,5
Here we have to ensure that there is an init script under /etc/init.d by name apache2 which normally gets installed when you install apache2. Instead of defaults you can choose between start/stop.



