Jump to content

Running (not running) programs at Startup


Recommended Posts

To make a service run on startup:

# chkconfig --add <servicename>

To prevent a service from running on startup:

# chkconfig --del <servicename>

 

To create a new service, create a script in /etc/rc.d/init.d/ named what you want. It must accept "start", "stop", "restart", and "status" as first argument. You can use mandrake functions (Redhat's in fact, it seems): they provide usefull higher-level IO and control.

Inside the top comment, include special lines that are for chkconfig. There's a line for the the description, there's a line for the runlevels at which to start/stop the service...

 

Look at the other scripts, it will give you ideas.

 

Yves.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...