Murda Posted January 26, 2006 Report Share Posted January 26, 2006 Hi. I've been searching this forum for answer to my question, but haven't found anything related to this. I can do this from Webmin, but i've forbidden all outside access to my server's Webmin. I want to do this via SSH. So my question is: How do i make processes run/not to run at boot time? My httpd (just an example) process starts at boot, but i don't want it to start automatically. Is there a command to do this or do i have to change some file under /etc ? I know that i can run and stop processes like this: su root service httpd start And stop: su root service httpd stop But i don't know where to look for this setting. Thanks. Murda Quote Link to comment Share on other sites More sharing options...
devries Posted January 26, 2006 Report Share Posted January 26, 2006 Open the Mandriva Control center, system, services :) Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 26, 2006 Report Share Posted January 26, 2006 To get a list of services using ssh: chkconfig --list of course, if you want to filter, let's say the service for apache is httpd, so: chkconfig --list httpd it will then list the runlevels it is set to "On", normally these will be runlevels 3 or 5, but also include some other runlevels too. To stop it so that it never starts at boot: chkconfig httpd off this will mean it will never start when the system is rebooted. Therefore, if you want to start it manually: service httpd start other parameters are to replace start with stop to stop the service, or with status to find out if it's running. Quote Link to comment Share on other sites More sharing options...
Murda Posted January 26, 2006 Author Report Share Posted January 26, 2006 Thanks, this solved my problem. And Devries, as i said, i want to do this via console (SSH). :P My runlevel is 3 (KDE doesn't start), so i can't access Mandriva Control Center. -Murda Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 26, 2006 Report Share Posted January 26, 2006 There is an mcc you can run from the command line, providing it's installed. I find the chkconfig method much quicker though :P Quote Link to comment Share on other sites More sharing options...
scarecrow Posted January 26, 2006 Report Share Posted January 26, 2006 I think the "services" section of mcc isn't available when accessed via CLI, but ain't sure... (haven't used Mandriva for quite some time). 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.