(3)[stone]/bin > more named.sh
clear
echo "==============================================================="
echo " SUB DOMAIN INSert "
echo "==============================================================="
echo "µµ¸ÞÀÎÀÔ·Â:\c"
read x
echo "
<VirtualHost 210.121.188.7>
ServerAdmin $x@backrush.com
DocumentRoot /home/$x/docs
ServerName $x.backrush.com
ErrorLog logs/error_log
CustomLog logs/access_log common
</VirtualHost> " >> /home/www/conf/httpd.conf
echo "$x.backrush.com. IN A 210.121.188.7" >>/var/named/backrushcom.zone
/bin/killer in.named
/usr/sbin/in.named
/home/www/bin/apachectl restart
total.sh
(4)[stone]/bin > more killer
#!/bin/sh
# kill the named process(es)
killproc() {
pid=`/usr/bin/ps -e |
/usr/bin/grep -w $1 |
/usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
[ "$pid" != "" ] && kill -9 $pid
}
killproc $1
#killer ¸ðµâÀº pts,ÇÁ·Î¼¼½º¸í,user¸í,process numberµîµîÀ» »ç¿ëÇÏ¿©
#ÇѲ¨¹ø¿¡ process¸¦ kill ½ÃÅ°´Â ¸ðµâ
(5)[stone]/bin >
|