LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 04: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, 04: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, 08: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, 08: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, 09:09 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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



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 03:47 PM
Disabling Services in Linux? wardialer Linux - Security 18 03-03-2005 07:36 PM
disabling stopping services ganxteh Fedora 6 12-17-2004 10:24 PM
Disabling startup services Corallis Fedora 2 08-02-2004 11:51 AM
disabling services on RH 8.0 juanb Linux - General 2 03-19-2003 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration