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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...