Sapphiron Posted August 2, 2004 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 Link to comment Share on other sites More sharing options...
theYinYeti Posted August 2, 2004 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. Link to comment Share on other sites More sharing options...
SwiftDeath Posted August 3, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now