I've become very accustomed to managing service startups on Redhat/RHEL platforms using chkconfig
though that doesn't appear to be the Debian/Ubuntu way - How do I update runlevel information for system services on Ubuntu?
Ultimately looking for the equivalents of:
chkconfig --add <service>
chkconfig --level 345 <service> on
chkconfig --del <service>
The equivalent to
chkconfig
isupdate-rc.d
The equivalents you seek are
See this useful page for more information or check out man update-rc.d
Best alternative IMHO is sysv-rc-conf To install just need to run the command:
Once installed run the command:
You can check or uncheck the options to start a service on any level of execution and may even stop or start the services from this console. It is an indispensable tool to enable or disable applications on an permanently way to boot your ubuntu If you need a quick change, then you can use the CLI interface:
For example to stop ssh at levels 3 and 5 of execution:
Atd to start in runlevels 2,3,4 and 5:
If you want to know more:
Right now, there is no equivalent on a stable release for doing things with Upstart scripts. Jacob Peddicord wrote jobservice (backend daemon) and jobs-admin (GTK+ GUI that talks to it) for his Google Summer of Code project. Lucid packages are in his PPA. They also exist in Universe in Maverick. There is no command line front-end for jobservice yet, just jobs-admin.
Try this:
This works, at least of as Ubuntu 12.04 release.
Lets walk from ZERO to Goal - how to do it with step by step.
Step 1: lets write a hello world
Step 2: lets make our hello world application server.py automated
Step 3:
Hope it helped.