Skip to content

Instantly share code, notes, and snippets.

@n0ts
Last active January 4, 2016 10:59
Show Gist options
  • Save n0ts/8612512 to your computer and use it in GitHub Desktop.
Save n0ts/8612512 to your computer and use it in GitHub Desktop.
Disable Service for CentOS 5 on VM
while read SERVICE
do
service $SERVICE stop
chkconfig $SERVICE off
done << EOL
acpid
auditd
autofs
bluetooth
firstboot
gpm
hidd
iscsi
iscsid
ip6tables
iptables
mcstrans
mdmonitor
netfs
nfslock
pcscd
portmap
restorecond
rpcgssd
rpcidmapd
sendmail
smartd
yum-updatesd
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment