LinuxQuestions.org
Help answer threads with 0 replies.
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 02-25-2003, 12:21 PM   #1
benutne
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
How to stop a service from starting in slack


I dont want all the crap that starts with the default install of slack to start. I dont need the SQL server or the httpd or such. Where do I edit which services start on boot and which ones dont?
 
Old 02-25-2003, 01:06 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Either you can go through your init scripts (which are well documented so you can probably do that safely) or you can stop the processes one by one by looking at ps -aux and killing the pid.

Cool
 
Old 02-25-2003, 01:41 PM   #3
benutne
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by MasterC
Either you can go through your init scripts (which are well documented so you can probably do that safely) or you can stop the processes one by one by looking at ps -aux and killing the pid.

Cool

And those are where? And how does one go about editing then? Using slackware with the full install remember. Not logged in as root right now, but as a default user.
 
Old 02-25-2003, 06:32 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You will need to be root when editing the files. They are in /etc/rc.d/

For the ones that are properly named, such as rc.sshd you can just remove the execute bit from the file:
chmod -x rc.xxx
where xxx is the rc file you don't want executed during startup. For ones that are enclosed inside a runlevel init script, you will actually need to edit the rc file itself, usually I use # (comments) to block out the things I don't want rather than deleting it. This way if I want it back later, or I screw up my commenting somehow, it's not too hard to bring my system back.

Cool
 
Old 02-25-2003, 09:50 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Also you can eliminate some services from starting up in your /etc/inetd.conf file, like FTP, Telnet... etc.
 
  


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
How do i cleanly stop a service? n0vembr Linux - General 18 07-29-2005 04:11 AM
Slack problems 1)incomplete shutdown? 2)starting a service koodoo Linux - Newbie 5 06-08-2005 11:22 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
service named can't stop... TAAN Linux - Networking 1 09-11-2003 03:43 AM
Mandrake - how to stop a service? taz76 Linux - Security 1 03-13-2003 06:31 AM

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

All times are GMT -5. The time now is 08:08 AM.

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