Init Scripts
|
ÀÌ ¹®¼´Â ºÎÆ® ½ºÅ©¸³Æ®¿Í ³×Æ®¿öÅ© °ü·Ã ½ºÅ©¸³Æ®¿¡ °ü·ÃµÈ ³»¿ëÀ» OS ȤÀº ¹èÆ÷ÆÇ º°·Î Á¤¸®Çϰí ÀÖ½À´Ï´Ù. Ãß°¡ÇÒ ¹èÆ÷ÆÇÀ̳ª ³»¿ëÀÌ ÀÖÀ¸¸é ÀÚÀ¯·Ó°Ô ³»¿ëÀ» Ãß°¡ÇØ Áֽðí, °íÄ¥ ºÎºÐÀÌ ÀÖÀ¸¸é ¿ª½Ã ÀÚÀ¯·Ó°Ô °íÃÄ ÁÖ¼¼¿ä. ³»¿ë Á¤¸®, Àç¹èÄ¡ ¿ª½Ã ¾ðÁ¦µçÁö ȯ¿µÇÕ´Ï´Ù.
2.1. RedHat ¶
[root@ns root]# ls -l /etc/rc.d/rc3.d/S* lrwxrwxrwx 1 root root 17 Sep 4 04:55 /etc/rc.d/rc3.d/S10network -> ../init.d/network lrwxrwxrwx 1 root root 16 Sep 4 04:55 /etc/rc.d/rc3.d/S12syslog -> ../init.d/syslog lrwxrwxrwx 1 root root 17 Sep 4 04:55 /etc/rc.d/rc3.d/S13portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 18 Sep 4 04:55 /etc/rc.d/rc3.d/S17keytable -> ../init.d/keytable lrwxrwxrwx 1 root root 16 Sep 4 04:55 /etc/rc.d/rc3.d/S20random -> ../init.d/random lrwxrwxrwx 1 root root 15 Sep 4 04:55 /etc/rc.d/rc3.d/S25netfs -> ../init.d/netfs lrwxrwxrwx 1 root root 14 Sep 4 04:55 /etc/rc.d/rc3.d/S55sshd -> ../init.d/sshd lrwxrwxrwx 1 root root 20 Sep 4 04:55 /etc/rc.d/rc3.d/S56rawdevices -> ../init.d/rawdevices lrwxrwxrwx 1 root root 16 Sep 4 04:55 /etc/rc.d/rc3.d/S56xinetd -> ../init.d/xinetd lrwxrwxrwx 1 root root 15 Sep 4 04:55 /etc/rc.d/rc3.d/S85httpd -> ../init.d/httpd lrwxrwxrwx 1 root root 15 Sep 4 04:55 /etc/rc.d/rc3.d/S90crond -> ../init.d/crond lrwxrwxrwx 1 root root 11 Sep 4 04:36 /etc/rc.d/rc3.d/S99local -> ../rc.local
[root@ns2 root]# service named status
number of zones: 15
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@ns2 root]# service named stop
Stopping named: [ OK ]
[root@ns2 root]# service named start
Starting named: [ OK ]
[root@ns2 root]# service named restart
Stopping named: [ OK ]
Starting named: [ OK ]
[root@ns2 root]# service named reload
[root@ns2 root]# service httpd status
httpd (pid 27936 27935 27934 27933 27932 27926 27925 27924 1164) is running...
[root@ns2 root]# service httpd
Usage: httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
2.2. Debian ¶
2.3. Gentoo ¶
3.1. RedHat ¶
3.2. Debian ¶
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
# dhcp´Â ´ÙÀ½°ú °°ÀÌ
auto eth0
iface eth0 inet dhcp
3.3. Gentoo ¶
|
You recoil from the crude; you tend naturally toward the exquisite. |











![[http]](/imgs/http.png)