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 ¶
|