LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2005, 05:22 PM   #1
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Rep: Reputation: 30
Question Disabling rc Services (specifically mysqld)?


I searched and all I found were people telling users to edit their /etc/inetd.conf file...but mysqld isn't in there. How do I just stop the service (I'm not exactly sure what its use is yet, so I figured I'd just disable it since it keeps starting and stopping within 5 seconds after bootup). I'm running the 2.6.11.11 kernel, Dropline-Gnome 2.10.1, and Slackware Current (~10.1). Thanks ahead!
-Galen
 
Old 05-31-2005, 05:28 PM   #2
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 30
Nevermind (sorry guys!).

chmod -x /etc/rc.d/filename

and in my case filename=rc.mysqld

I found this on SHILO's Slackware site: http://shilo.is-a-geek.com/slack/tweak.html

Cheers,
Galen
 
Old 06-06-2005, 09:14 PM   #3
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
chkconfig is a better way

You can use "chkconfig" to enable/disable services to that the computer does not even try to start them. With "chmod -x" it will still try to start them but fail, which could result in uncessary system log entries. Some examples:
"chkconfig --list" - list all of the services and what runtime level(s) they are enabled in
"chkconfig <service name> off" - disable the service in all runtime levels.

Enjoy!
 
Old 06-06-2005, 09:18 PM   #4
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 30
Awesome! Thanks Fortezza.

Cheers,
Galen
 
Old 06-06-2005, 10:09 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The trouble is that Slackware doesn't use chkconfig. With Slackware, chmod -x is actually the correct way to disable a service from starting on boot. Slack tries to make its startup scripts look as close to the BSD model as possible, henct no chkconfig or SysV init stuff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling services in firestarter darkleaf Linux - Security 7 06-21-2005 04:47 PM
Disabling Services in Linux? wardialer Linux - Security 18 03-03-2005 08:36 PM
disabling stopping services ganxteh Fedora 6 12-17-2004 11:24 PM
Disabling startup services Corallis Fedora 2 08-02-2004 12:51 PM
disabling services on RH 8.0 juanb Linux - General 2 03-19-2003 08:26 PM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration