I'm trying to minimize memory and CPU usage on my VPS.
here's what I really need in init.d:
crond
firewall
httpd
postfix
dovecot
clamd
clamsmtpd
named
network
sshd
syslog
vsftpd
webmin
xinetd
/etc/rc.d/rc.local
And this is my pstree output:
Code:
init-+-clamd
|-clamsmtpd
|-crond
|-dbus-daemon-1
|-dovecot-+-dovecot-auth
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-pop3-login
| |-pop3-login
| |-pop3-login
| `-pop3-login
|-httpd-+-httpd
| |-httpd
| |-httpd---pstree
| |-httpd
| |-httpd
| |-httpd
| |-httpd
| `-httpd
|-master-+-anvil
| |-pickup
| |-qmgr
| |-smtpd
| |-smtpd
| `-trivial-rewrite
|-miniserv.pl
|-miniserv.pl---miniserv.pl
|-miniserv.pl---miniserv.pl
|-miniserv.pl---miniserv.pl
|-miniserv.pl---miniserv.pl
|-sshd---sshd---bash---mc---bash
|-syslogd
`-xinetd
Now I see a lot of stuff in /etc/rc.d/init.d
but I'm not sure if I can safely move it out:
auditd
dc_client
haldaemon
kudzu
netplugd
rdisc
dc_server
halt
lm_sensors
saslauthd
vzquota
messagebus
nscd
smartd
cpuspeed
irqbalance
microcode_ctl
functions
killall
netfs
rawdevices
Is there somebody using a VPS under virtuozzo who can tell me which of all the services I can switch off/remove ?
Also, what exactly happens when I do a reboot in a VPS? When I do
# shutdown -r now
it used to show me it was stopping and starting all services in messages log,
but all I get now is just 1 entry where it says I did a shutdown.
It looks like shutdown is broken somehow. Any idea?