강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

리눅스데몬 스크립트파일 설명 -3-

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

리눅스데몬 스크립트파일 설명 -3-

작성자 : (주)수퍼유저코리아, http://www.superuser.co.kr 서버팀


/etc/rc.d/init.d 디렉토리내에 있는 리눅스데몬스크립트 파일들


42. 데몬 스크립트 파일 : /etc/rc.d/init.d/kudzu

top


kudzu데몬은 새로운 하드웨어나 또는 변경된 하드웨어를 조사하여 설정하는 데몬입니다. 또한 kudzu데몬은 현재의 하드웨어 정보와 /etc/sysconfig/hwconf에 저장해 하드웨어 정보를 비교하여 변경된 하드웨어 또는 해로운 하드웨어가 존재하는가를 알아냅니다.

, 시스템 하드웨어의 변경 또는 새로운 하드웨어의 추가장착등과 같은 하드웨어에 대해 조사하는 kudzu데몬을 시작시키거나 종료하는 스크립트입니다.

사용옵션 : start|stop

데몬파일 : /usr/sbin/kudzu

아래의 예와같이 kudzu 데몬을 시작시키는 스크립트를 실행하면 새로운 하드웨어에 대한 점검시간을 필요로 합니다.

 

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/kudzu start

Checking for new hardware [ OK ]

Updating /etc/fstab [ OK ]

[root@command init.d]#

 


43. 데몬 스크립트 파일 : /etc/rc.d/init.d/ldap

top



디렉토리 액세스 프로토콜 데몬인 LDAP 데몬(slapdslurpd데몬)을 시작시키거나 종료시키는 스크립트입니다.

사용옵션 : start|stop|restart|status|condrestart

프로세스명 : slapd

설정파일 : /etc/openldap/slapd.conf

PID파일 : /var/run/slapd.pid

관련디렉토리 : /etc/openldap/

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/ldap stop

Stopping slapd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ldap start

Starting slapd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ldap restart

Stopping slapd: [ OK ]

Starting slapd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ldap status

slapd (pid 2280) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep ldap

ldap 2332 1 0 17:56 ? 00:00:00 [slapd]

root 2338 1679 0 17:56 pts/0 00:00:00 grep ldap

[root@command init.d]#

 

44. 데몬 스크립트 파일 : /etc/rc.d/init.d/lisa

top


LISa를 시작시키거나 종료시키는 스크립트입니다. LISa는 사용자 시스템상에서 실행시키기 위한 작은 데몬입니다. 이 스크립트는 LISa 데몬을 시작시키거나 종료시키는 스크립트입니다.

사용옵션 : start|stop|restart|status|condrestart

프로세스명 : lisa

설정파일 : /etc/lisarc

데몬파일 : /usr/bin/lisa

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/lisa stop

Stopping LISa: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lisa start

Starting LISa: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lisa restart

Stopping LISa: [ OK ]

Starting LISa: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lisa status

lisa (pid 2453 2450) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep lisa

root 2378 1 0 18:04 ? 00:00:00 lisa

root 2401 1679 0 18:05 pts/0 00:00:00 grep lisa

[root@command init.d]#

 


45. 데몬 스크립트 파일 : /etc/rc.d/init.d/lpd

top

 

여러분들도 잘 아시는 프린트 데몬인 lpd데몬을 시작시키거나 종료시키는 스크립트입니다. 즉 리눅스 서버에서 프린트를 사용하기 위하여 lpd데몬이 필요하며 이를 시작시켜주는 스크립트입니다. 만약 로컬 프린트가 아닌 네트워크 프린트를 사용하고자 할 경우에도 lpd는 실행이 되어야 합니다.

사용옵션 : start|stop|restart|condrestart|reload|status

프로세스명 : /usr/sbin/lpd

설정파일 : /etc/printcap

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/lpd stop

Stopping lpd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lpd start

Starting lpd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lpd restart

Stopping lpd: [ OK ]

Starting lpd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/lpd status

lpd (pid 2546) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep lpd

lp 2546 1 0 18:14 ? 00:00:00 [lpd]

root 2558 1679 0 18:14 pts/0 00:00:00 grep lpd

[root@command init.d]#

 


46. 데몬 스크립트 파일 : /etc/rc.d/init.d/mailman

top


GNU Mailman을 시작시키거나 종료시키는 스크립트입니다. MailmanGNU GPL(General Public License)라이센스하에서 사용할 수 있는 메일링리스트 관리프로그램입니다.

프로세스명 : mailmanctl

설정파일 : /var/mailman/Mailman/mm_cfg.py

PID파일 : /var/mailman/data/qrunner.pid

MAILMAN홈디렉토리 : /var/mailman

MAILMAN관리기 : /var/mailman/bin/mailmanctl

 


47. 데몬 스크립트 파일 : /etc/rc.d/init.d/mars-nwe

top


MARSNetWare와 호환되는 파일(프린트)서버 데몬입니다. , NetWareIPX프로토콜을 사용하는 NetWare 클라이언트에 대하여 리눅스 시스템을 파일(프린트)서버로 사용할 수 있도록 합니다.

사용옵션 : start|stop|status|restart|reload|condrestart

관련데몬

- /usr/sbin/nwserv

- /usr/sbin/nwbind

- /usr/sbin/ncpserv

설정파일

- /etc/nwserv.stations

- /etc/nwserv.conf

PID 파일 : /var/run/nwserv.pid

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/mars-nwe start

Starting NetWare emulator-server: [ OK ]

[root@command init.d]#


48. 데몬 스크립트 파일 : /etc/rc.d/init.d/mdmonitor

top


잘 아시는 바와 같이 RAID디바이스는 물리적인 여러 개의 실제 블록장치들을 가상장치로 생성하여 관리할 수 있도록 합니다. Mdadm은 리눅스 소프트웨어 RAID관리도구로서 소프트웨어 RAID 모니터링과 관리를 할 수 있습니다. Mdmonitor스크립트는 mdadm을 시작하거나 종료 또는 재시작하는 스크립트입니다.

사용옵션 : start|stop|status|restart|condrestart

설정파일 : /etc/mdadm.conf


49. 데몬 스크립트 파일 : /etc/rc.d/init.d/mysqld

top


여러분들께서도 너무나 잘 아시는 MySQL 데이터베이스를 실행(중지)시키는 스크립트입니다.

사용옵션 : start|stop|status|condrestart|restart

설정파일 : /etc/my.cnf

PID파일 : /var/run/mysqld/mysqld.pid

데이터저장위치 : /var/lib/mysql

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/mysqld stop

Stopping MySQL: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/mysqld start

Starting MySQL: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/mysqld restart

Stopping MySQL: [ OK ]

Starting MySQL: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/mysqld status

mysqld (pid 2234) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep mysqld

root 2209 1 0 23:06 pts/0 00:00:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf

mysql 2234 2209 0 23:06 pts/0 00:00:00 [mysqld]

root 2248 1993 0 23:06 pts/0 00:00:00 grep mysqld

[root@command init.d]#

 


50. 데몬 스크립트 파일 : /etc/rc.d/init.d/named

top


도메인네임서버인 BIND DNS 서버(named) 데몬을 실행(중지)시키는 스크립트입니다. 여러분들께서도 잘 아시는 바와 같이 BIND 데몬인 named는 해당 도메인에 대한 IP주소를 알려주거나 반대로 IP주소를 도메인으로 알려주는 역할을 합니다. 그리고 각 도메인들에 대한 레코드값들을 설정하여 특정 도메인에 대한 정보서비스를 제공합니다. DNS로 사용되는 서버에서는 반드시 실행되어야하는 데몬입니다.

사용옵션 : start|stop|status|restart|condrestart|reload|probe

도메인정보(zone)파일 저장위치 : /var/named

설정파일 : /etc/named.conf

스크립트 사용예

[root@ command init.d]# /etc/rc.d/init.d/named stop

Stopping named : [ OK ]

[root@ command init.d]#

[root@ command init.d]# /etc/rc.d/init.d/named start

Starting named : [ OK ]

[root@ command init.d]#

[root@ command init.d]# /etc/rc.d/init.d/named restart

Stopping named : [ OK ]

Starting named : [ OK ]

[root@ command init.d]#

[root@command init.d]# ps -ef | grep named

named 2306 1 0 23:12 ? 00:00:00 [named]

root 2315 1993 0 23:12 pts/0 00:00:00 grep named

[root@command init.d]#


51. 데몬 스크립트 파일 : /etc/rc.d/init.d/netdump

top


netconsolenetcrashdump 기능을 시작하거나 종료 또는 재시작하는 스크립트입니다.

사용옵션 : start|stop|status|restart|reload|propagate

설정파일 : /etc/sysconfig/netdump


52. 데몬 스크립트 파일 : /etc/rc.d/init.d/netdump-server

top


netdump서버데몬을 시작(종료,재시작)하는 스크립트입니다.

사용옵션 : start|stop|status|restart|condrestart

PID파일 : /var/run/netdump-server.pid

설정파일 : /etc/netdump.conf

데몬파일 : /usr/sbin/netdump-server

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/netdump-server stop

Stopping netdump server: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/netdump-server start

Starting netdump server: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/netdump-server restart

Stopping netdump server: [ OK ]

Starting netdump server: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/netdump-server status

netdump-server (pid 2539) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep netdump

netdump 2539 1 0 23:25 ? 00:00:00 /usr/sbin/netdump-server --daemon

root 2548 1993 0 23:25 pts/0 00:00:00 grep netdump

[root@command init.d]#

 


53. 데몬 스크립트 파일 : /etc/rc.d/init.d/netfs

top


Network Filesystem(NFS)SMB(Lan Manager/Windows ), NCP(NetWare)를 마운트 시키거나 마운트 해제하는 데몬 스크립트입니다.

사용옵션 : start|stop|restart|reload|status

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/netfs stop

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/netfs start

Mounting other filesystems: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/netfs restart

Mounting other filesystems: [ OK ]

[root@command init.d]#

 


54. 데몬 스크립트 파일 : /etc/rc.d/init.d/network

top



리눅스 서버의 통신을 가능하도록 하기 위하여 관련 파일에 설정되어 있는대로 네트워크 설정을 하거나 중단하는 스크립트입니다.

사용옵션 : start|stop|restart|reload|status

관련디렉토리 : /etc/sysconfig/network-scripts

관련파일 : /etc/sysconfig/network

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/network restart

Shutting down interface eth0: [ OK ]

Shutting down loopback interface: [ OK ]

Setting network parameters: [ OK ]

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: [ OK ]

Bringing up interface eth1: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/network start

Setting network parameters: [ OK ]

Bringing up loopback interface: [ OK ]

Bringing up interface eth0: [ OK ]

Bringing up interface eth1: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/network stop

Shutting down interface eth0: [ OK ]

Shutting down loopback interface: [ OK ]

[root@command init.d]#

 


55. 데몬 스크립트 파일 : /etc/rc.d/init.d/nfs

top


NFS 서비스 데몬을 시작(종료, 재시작)하는 스크립트입니다. NFSTCP/IP 네트워크상에서 파일공유를 위해 많이 사용되고있는 프로토콜입니다. 이 스크립트로 NFS서비스를 실행하면 /etc/exports파일의 설정대로 NFS서버기능을 할 수 있도록 설정합니다.

사용옵션 : start|stop|status|restart|reload

설정파일 : /etc/sysconfig/nfs

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/nfs stop

Shutting down NFS mountd: [ OK ]

Shutting down NFS daemon: [ OK ]

Shutting down NFS quotas: [ OK ]

Shutting down NFS services: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfs start

Starting NFS services: [ OK ]

Starting NFS quotas: [ OK ]

Starting NFS daemon: [ OK ]

Starting NFS mountd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfs restart

Shutting down NFS mountd: [ OK ]

Shutting down NFS daemon: [ OK ]

Shutting down NFS quotas: [ OK ]

Shutting down NFS services: [ OK ]

Starting NFS services: [ OK ]

Starting NFS quotas: [ OK ]

Starting NFS daemon: [ OK ]

Starting NFS mountd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfs status

rpc.mountd (pid 4947) is running...

nfsd (pid 4939 4938 4937 4936 4935 4934 4933 4932) is running...

rpc.rquotad (pid 4928) is running...

[root@command init.d]#[root@command init.d]# ps -ef | grep nfs

[root@command init.d]#

root 4932 1 0 23:44 ? 00:00:00 [nfsd]

root 4933 1 0 23:44 ? 00:00:00 [nfsd]

root 4934 1 0 23:44 ? 00:00:00 [nfsd]

root 4935 1 0 23:44 ? 00:00:00 [nfsd]

root 4936 1 0 23:44 ? 00:00:00 [nfsd]

root 4937 1 0 23:44 ? 00:00:00 [nfsd]

root 4938 1 0 23:44 ? 00:00:00 [nfsd]

root 4939 1 0 23:44 ? 00:00:00 [nfsd]

root 4965 1993 0 23:45 pts/0 00:00:00 grep nfs

[root@command init.d]#

 


56. 데몬 스크립트 파일 : /etc/rc.d/init.d/nfslock

top


NFS파일 락킹서비스를 시작(종료,재시작)하는 스크립트입니다.

사용옵션 : start|stop|status|restart


스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/nfslock stop

Stopping NFS statd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfslock start

Starting NFS statd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfslock restart

Stopping NFS statd: [ OK ]

Starting NFS statd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nfslock status

rpc.statd (pid 2504) is running...

[root@command init.d]#

 


57. 데몬 스크립트 파일 : /etc/rc.d/init.d/nscd

top


네임서비스 캐쉬데몬(Name Service cache Daemon)을 시작하는 스크립트입니다. NSCD데몬은 가장일반적인 네임서비스에 대한 캐쉬기능을 제공하는 데몬으로서 /etc/passwd, /etc/group, /etc/hosts파일등에 대한 캐쉬정보를 가지고 있습니다. NSCD데몬의 설정파일은 /etc/nscd.conf입니다.

사용옵션 : start|stop|status|restart|reload|condrestart

데몬파일 : /usr/sbin/nscd

설정파일 : /etc/nscd.conf

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/nscd stop

Stopping nscd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nscd start

Starting nscd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nscd restart

Stopping nscd: [ OK ]

Starting nscd: [ OK ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/nscd status

nscd (pid 2647) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep nscd

nscd 2647 1 0 15:31 ? 00:00:00 [nscd]

root 2668 2340 0 15:31 pts/0 00:00:00 grep nscd

[root@command init.d]#

 


 
copyright.gif

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,043 명
  • 현재 강좌수 :  35,853 개
  • 현재 접속자 :  88 명