데몬 스크립트 파일 : /etc/rc.d/init.d/crond
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,420 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/crond
cron 데몬 스크립트입니다.
여러분들께서도 잘 아시는 바와 같이 cron은 특정한 시간에 지정된 작업을 주기적으로 하도록 하는 리눅스 작업관리자 데몬입니다.
이런 cron데몬을 시작, 재시작 또는 종료시키는 스크립트입니다.
이 스크립트에 관련된 명령어들은 이 책의 crontab명령어편을 참조하시기 바랍니다.
사용옵션 : start|stop|status|reload|restart|condrestart
설정파일 : /etc/crontab
크론관련파일들
- 시간주기 cron 실행파일보관 디렉토리 : /etc/cron.hourly
- 일주기 cron 실행파일보관 디렉토리 : /etc/cron.daily
- 주주기 cron 실행파일보관 디렉토리 : /etc/cron.weekly
- 월주기 cron 실행파일보관 디렉토리 : /etc/cron.monthly
PID파일 : /var/run/crond.pid
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/crond stop Stopping crond: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/crond start Starting crond: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/crond restart Stopping crond: [ OK ] Starting crond: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/crond status crond (pid 4037) is running... [root@command init.d]# [root@command init.d]# ps -ef | grep cron root 4037 1 0 11:26 ? 00:00:00 crond root 4052 2007 0 11:27 pts/0 00:00:00 grep cron [root@command init.d]# |
관련자료
-
이전
-
다음