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 01-23-2005, 11:42 PM   #1
speel
Member
 
Registered: Apr 2004
Location: queens , nyc
Distribution: Ubuntu MATE
Posts: 352

Rep: Reputation: 30
how do you shut down services


well what i mean is like startup daemons like lpd , things like that .. how do i stop them from starting up in the boot process
 
Old 01-24-2005, 12:09 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you need to edit /etc/inet.d
 
Old 01-24-2005, 12:24 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
I like to run the command: chkconfig --list to get a better idea of what's out there. Then I can run the command: chkconfig --level 5 cups-lpd off
That shuts it off for run level 5 and I could add other run levels if wanted.
man chkconfig for more details.
 
Old 01-24-2005, 12:31 AM   #4
speel
Member
 
Registered: Apr 2004
Location: queens , nyc
Distribution: Ubuntu MATE
Posts: 352

Original Poster
Rep: Reputation: 30
there is no inet.d ;/
 
Old 01-24-2005, 07:48 AM   #5
yyahmee
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Rep: Reputation: 0
If you have FC3 and GNOME, go to Applications>System Settings>Server Settings>Services
 
Old 01-24-2005, 08:24 AM   #6
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
dude, which distro? They all seem to have some other way to do it and if you don't tell us then we can't help you.

On Gentoo (i think Redhat and Fedora also follow this but i'm not really sure...) i have them in /etc/init.d/

so in order to stop/start/restart a service you would do (as root, usually)

Code:
atom@saturn ~/ # /etc/init.d/apache2 stop
Ok so let's explain this.
The first part (incuding the '#') is my prompt,
/etc/init.d/ is the location of the script.
apache2, in this case, is the startup script for apache2. it could be vsftp or lpd or any service name you have installed. this is actually a program written in bash
stop is a command line argument given to the script to tell it what it should do. All of them should accept at least 3 different ones: stop, start and restart. Some support more (like status, pause, background...)

Hope this sheds some light on things.
 
  


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
How to shut down? FarAway Red Hat 7 02-25-2005 11:48 AM
Fedora C 2 shut down services alhaidry Linux - Security 6 06-22-2004 08:18 PM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 03:30 AM
Fail shut down console mouse services? SuperCoolAl Fedora 3 03-14-2004 09:26 PM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 07:05 PM


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