귀차니즘 방지용 – Runlevel 설정.
귀차니즘 방지용.
#!/bin/bash
Demon=`chkconfig –list | awk ‘{print $1}’ | grep -v ‘:’`
for disable in $Demon
do
chkconfig –level 3 $disable off
done
chkconfig –level 3 xinetd on
chkconfig –level 3 crond on
chkconfig –level 3 iptables on
chkconfig –level 3 syslog on
chkconfig –level 3 network on
chkconfig –level 3 sshd on