데몬 스크립트 파일 : /etc/rc.d/init.d/psacct
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,347 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/psacct
커널에 의해 수행되었던 프로세스 어카운팅(프로세스명, 명령어)를 보관하는 데몬 스크립트입니다.
이 데몬이 수행되면 /var/account/pacct라는 파일에는 커널에 의해 수행되었던 모든 명령어들이 바이너리 형태로 저장됩니다.
이들 명령어를 확인해 보시려면 “strings /var/account/pacct”라는 명령어를 이용하시면 됩니다.
사용옵션 : start|stop|status|restart|reload
어카운트파일 : /var/account/pacct
관련명령어 : /sbin/accton
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/psacct stop Shutting down process accounting: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/psacct start Starting process accounting: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/psacct restart Shutting down process accounting: [ OK ] Starting process accounting: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/psacct status Process accounting is enabled. [root@command init.d]# |
관련자료
-
이전
-
다음