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

Notices


Reply
  Search this Thread
Old 06-04-2004, 11:24 AM   #1
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Rep: Reputation: 15
Turning off unneeded FC1 processes


Hi everyone,


I just did a server/minimal install on an old white box using FC1. I noticed a number of processes running in 'ps ax' and was wondering which I could safely turn off:

Code:
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:06 init [3]  
    2 ?        SW     0:00 [keventd]
    3 ?        SW     0:00 [kapmd]
    4 ?        SWN    0:00 [ksoftirqd/0]
    6 ?        SW     0:00 [bdflush]
    5 ?        SW     0:00 [kswapd]
    7 ?        SW     0:00 [kupdated]
    8 ?        SW     0:00 [mdrecoveryd]
   12 ?        SW     0:00 [kjournald]
   63 ?        SW     0:00 [khubd]
 1601 ?        SW     0:00 [kjournald]
 1913 ?        S      0:00 syslogd -m 0
 1917 ?        S      0:00 klogd -x
 1934 ?        S      0:00 portmap
 1953 ?        S      0:00 rpc.statd
 2004 ?        S      0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript
 2054 ?        S      0:00 /usr/sbin/sshd
 2078 ?        S      0:00 sendmail: accepting connections
 2087 ?        S      0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
 2097 ?        S      0:00 gpm -m /dev/mouse -t imps2
 2106 ?        S      0:00 crond
 2115 ?        SN     0:00 anacron -s
 2123 ?        S      0:00 /usr/sbin/atd
 2132 tty1     S      0:00 /sbin/mingetty tty1
 2133 tty2     S      0:00 /sbin/mingetty tty2
 2134 tty3     S      0:00 /sbin/mingetty tty3
 2135 tty4     S      0:00 /sbin/mingetty tty4
 2136 tty5     S      0:00 /sbin/mingetty tty5
 2137 tty6     S      0:00 /sbin/mingetty tty6
 2138 ?        S      0:00 sshd: meyers [priv]
 2140 ?        S      0:00 sshd: meyers@pts/0
 2141 pts/0    S      0:00 -bash
 2176 pts/0    S      0:00 su
 2177 pts/0    S      0:00 bash
 2501 ?        S      0:00 sshd: meyers [priv]
 2503 ?        S      0:00 sshd: meyers@notty
 2504 ?        S      0:00 /usr/libexec/openssh/sftp-server
 2581 pts/0    R      0:00 ps ax
The box is going to be a simple testing server for an apache/php/postgresql platform. I see a whole lot of stuff turned on in ntsysv and was wondering someone could suggest what I could turn off. I already figuring on turning off portmap and gpm but maybe you guys can suggest some more. Here's my currenet ntsysv setup:

Code:
[*] acpid[*] anacron[*] apmd[*] atd[*] autofs[*] crond[*] gpm[*] httpd    [*] iptables
[ ] irda[*] irqbalance[*] isdn[*] kudzu[*] microcode_ctl[*] netfs[*] network 
[ ] nfs[*] nfslock[*] pcmcia[*] portmap[*] postgresql[*] random[*] rawdevices[*] rhnsd  
[ ] saslauthd[*] sendmail
[ ] smartd[*] sshd[*] syslog
[ ] yum
PS: smartd fails when I try to start or stop it so I just turned it off already.

Thanks so much for the help!!!
 
Old 06-04-2004, 11:43 AM   #2
GufyMike
Member
 
Registered: Apr 2004
Location: Los(t) Angeles
Distribution: Fedora Core2, RH9, FreeBSD, Debian, Knoppix,
Posts: 53

Rep: Reputation: 15
If you aren't and/or don't want anyone to log in remotely you can disable sshd. But thats all I believe that can be safely shut off without endangering your network maybe sendmail but you may need that to test mailto functions in php. ip2tables is your firewall so thats a personal choice. But thats all I would shutdown.
 
Old 06-04-2004, 02:03 PM   #3
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
Okay, cool. I'll turn off iptables since my box is behind a firewall and on a LAN I can trust. Thanks for the input, although if anyone else thought I could trim the box down further that'd be cool.
 
Old 06-04-2004, 05:33 PM   #4
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
you don't need apmd and acpid... one or the other should work... probably apmd since it's an older box... irqbalance is for multiple processors AFAIK...
 
Old 06-04-2004, 06:35 PM   #5
aline
LQ Newbie
 
Registered: May 2004
Distribution: linux
Posts: 17

Rep: Reputation: 0
[*] acpid[*] anacron[*] apmd[*] atd[*] autofs[*] crond[*] gpm[*] httpd [*] iptables
[ ] irda[*] irqbalance[*] isdn[*] kudzu[*] microcode_ctl[*] netfs[*] network
[ ] nfs[*] nfslock[*] pcmcia[*] portmap[*] postgresql[*] random[*] rawdevices[*] rhnsd
[ ] saslauthd[*] sendmail
[ ] smartd[*] sshd[*] syslog
[ ] yum

OK, from this list you can turn off acpid, apmd, atd, autofs, iptables, irqbalance if the computer has a single CPU, isdn, netfs, nfslock, pcmcia, portmap, rhnsd. Try to start smartd as this will monitor SMART functions on you hard-disk(s) and you can know in advance any problems that might hit you hdd. It saved my bacon several times. Edit /etc/smard.conf to fit your needs.
 
Old 06-05-2004, 01:25 AM   #6
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
Wow, thanks a lot for that info! With Linux being so modular it makes sense that I can strip the box way down and squeeze every bit of performance out of it! Thanks again.
 
  


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
Removing unneeded old dependencies pulsez Fedora 5 09-16-2005 01:18 AM
Unneeded Services robpom Linux - Security 4 03-29-2005 08:28 AM
Closing Unneeded Services AvatarofVirgo Linux - Security 2 01-20-2005 05:16 PM
Unneeded modules load at startup Cikotic Linux - General 7 07-12-2004 06:36 AM
ps -A unneeded apps watashiwaotaku7 Linux - Software 4 11-09-2002 08:58 PM

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

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