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

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

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

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

 

 여러분들께서 잘 아시는 sendmail은 메일 릴레이 서버로서 가장 대표적이고 가장 많이 사용되는 MTA(Mail Transport Agent)입니다. 

 

 

 이 스크립트는 sendmail의 실행과 종료, 재시작을 할 때 사용됩니다. 

 

 

 

 

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

 

데몬파일     : /usr/sbin/sendmail

설정파일     : /etc/mail/sendmail.cf 또는 /etc/sendmail.cf

로그파일     : /var/log/maillog

관련디렉토리 : /etc/mail

 

스크립트 사용예

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

Shutting down sendmail: [  OK  ]

Shutting down sm-client: [  OK  ]

[root@command init.d]#

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

Starting sendmail: [  OK  ]

Starting sm-client: [  OK  ]

[root@command init.d]#

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

Shutting down sendmail: [  OK  ]

Shutting down sm-client: [  OK  ]

Starting sendmail: [  OK  ]

Starting sm-client: [  OK  ]

[root@command init.d]#

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

sendmail (pid 5120 5111) is running...

[root@command init.d]#

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

root      5111     1  0 18:42 ?        00:00:00 [sendmail]

smmsp     5120     1  0 18:42 ?        00:00:00 [sendmail]

root      5136  2340  0 18:42 pts/0    00:00:00 grep sendmail

[root@command init.d]#

 

 

 

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  105 명