LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-15-2003, 12:10 AM   #1
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
Listing/Stopping Running Services


Sorry if this is too noobie of a question but I have been searching for hours and can't find the answer. I'm still pretty lost in Slackware.

In Mandrake, if I wanted to find out what services are running and turn services off so they wont start on boot, I used the Mandrake Control Center. In Slack I can't even figure out how to list the running services, much less turn them off. I thought "ps -aux" listed everything that's running but it doesn't show running services like: arts, shorewall, nfs... etc.

Could someone please take a minute and point me in the right direction?

Thanks,
Ted.
 
Old 08-15-2003, 12:43 AM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
All the service and startup scripts are located in:

/etc/rc.d/


If you dont want the service to start at boot, just make that script not executable (chmod -x [filename])


ps -aux will list your running services though. Most end in a "d" (for daemon).
 
Old 08-15-2003, 10:07 AM   #3
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Thank you for the reply. Slack is kind of different. In Mandrake you had rc3.d, rc4.d and so on. You just comment out the services you don't want running at whatever run-level the service ran. I tried using the instructions for stopping services in my Linux administration book but the instruction won't work for Slack. I'll keep studying though.

Have a good day,
Ted.
 
Old 08-15-2003, 11:28 AM   #4
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
another way of doing the same thing that contra explained is to do the following:

1) if you want to see what services are listening on given ports, use "$socklist" or "$netstat -l"

2) to get rid of these services, i just go through the various scripts in /etc/rc.d/ that start and stop the respective services; if you want to not have httpd (or any of the other daemons) run on startup, then go through the scripts rc.0, rc.K, rc.M, rc.S, and rc.inet2 and comment out the lines where those services are mentioned; also remember to go through /etc/inetd.conf to shutdown services like finger, auth, etc.

3) check that no services are listening by using commands in 1)
 
Old 08-15-2003, 03:02 PM   #5
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks everyone. I printed out your pointers and will go through them when I get home from lunch.

Appreciate it,
Ted.
 
Old 08-15-2003, 05:57 PM   #6
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
ps -A
make sure it is a CAP A

than just the 'kill...' command
 
Old 08-16-2003, 07:40 PM   #7
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
I have gone back to Mandrake. Tired of trying to fix Slackware.

Thanks for all the help,
Ted.
 
Old 09-14-2003, 12:30 AM   #8
Amir
LQ Newbie
 
Registered: May 2003
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
how do you make linux start a service at startup?? I would like my linux computer to load vncserver :1 and :2 at startup, but i don't know how

Any help would be greatly appreciated!
 
Old 09-14-2003, 10:46 AM   #9
g00$e
Member
 
Registered: Sep 2003
Location: Norfolk, VA
Distribution: Slackware
Posts: 119

Rep: Reputation: 15
Quote:
Originally posted by mooreted
I have gone back to Mandrake. Tired of trying to fix Slackware.

Thanks for all the help,
Ted.
Trying to fix Slackware? There is nothing broke in it.

What your are doing under the 'Mandrake Control Center' is using a GUI interface to manipulate scripts and configuration files. Since you have no idea where these files are and how they interact with each other you require a GUI.

Some do not wish to use a GUI or have a greater desire to understand how their OS works.

To suggest that Slackware is broken is crap.
 
Old 09-14-2003, 12:11 PM   #10
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
ps -ef | sort | more will sort it out for you...
 
Old 09-17-2003, 12:15 PM   #11
MandrakeDave
LQ Newbie
 
Registered: Sep 2003
Location: JAX-Area, FL
Distribution: Mandrake LE2005
Posts: 16

Rep: Reputation: 0
Quote:
Originally posted by contrasutra
All the service and startup scripts are located in:

/etc/rc.d/


If you dont want the service to start at boot, just make that script not executable (chmod -x [filename])
How do you make it "executable" again if you want the service to start at boot again?
 
Old 09-17-2003, 01:08 PM   #12
g00$e
Member
 
Registered: Sep 2003
Location: Norfolk, VA
Distribution: Slackware
Posts: 119

Rep: Reputation: 15
checkout 'man chmod' or Alphabetical Directory of Linux Commands under chmod.

Short answer is:

chmod 755 /etc/rc.d/rc.httpd
 
Old 08-20-2004, 08:30 AM   #13
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
Mandrake???

Ok, since I'm a hardcore Slacker, I have to call a foul. Mere MENTION of Mandrake requires a quick disembowelment! Keep in mind, the true power of linux is still yielded at the command line. I tried Mandrake when I first started with linux way back when. Even at first glance I hated it. GUI configs were buggy and no real control over your own environment unless you went to the command line which is where Slackware comes in. To truly understand linux, I honestly believe you need to put yourself in the shoes of the creator. It's really not that hard to comprehend once you start to recognize certain patterns in the obvious logic that is Slackware. I really must say - the more I use Slackware, the more I appreciate it over the other distributions, truly.
 
Old 08-20-2004, 08:42 AM   #14
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Quote:
Originally posted by mooreted
I have gone back to Mandrake. Tired of trying to fix Slackware.

Thanks for all the help,
Ted.
There are those who like to do things for themselves and those who like to have things done for them. If you prefer the latter then you are better off in Mandrake. Don't get me wrong, I think Mandrake is a fine distro and does it's job well. It just has a different philosophy. Slackware is very low level for administration, if this does not suit you then you probably will never like it. But Slackware does not need "fixing" it needs administration.
 
Old 08-20-2004, 09:10 AM   #15
wakeras
LQ Newbie
 
Registered: Oct 2003
Location: Kota Bharu, Malaysia.
Distribution: Slackware 12.0, Debian Lenny
Posts: 10

Rep: Reputation: 0
quote:
Originally posted by mooreted
I have gone back to Mandrake. Tired of trying to fix Slackware.

Thanks for all the help,
Ted.

_-----------------------------------------------------------------------------------------_

hi.....don't worry, it just a normal process of learning linux. Ppl will go forth and back again to various distro until they stop and think. Which distro teach them someting. For me, itys Slackware. Once you know how Slackware works, it will become easier everyday.
 
  


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
stopping services not in xinetd.d branden_burger Linux - Security 2 04-12-2005 08:34 PM
listing servers/services YBA^[x] Slackware 6 12-30-2004 12:10 AM
disabling stopping services ganxteh Fedora 6 12-17-2004 10:24 PM
stopping services? piglingz Linux - Software 3 06-24-2003 04:26 PM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:31 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