Sapphiron Posted August 2, 2004 Report Share Posted August 2, 2004 What file do I edit to determine what services run at startup (eg ftp) I know how to run a service Also if someone can tell me how to add a program as a service under mandrake, it would be nice Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 2, 2004 Report Share Posted August 2, 2004 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. Quote Link to comment Share on other sites More sharing options...
SwiftDeath Posted August 3, 2004 Report Share Posted August 3, 2004 If you use webmin its very easy to add a service. And You can modify the script it makes to support you Start/Stop arguements. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.