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

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

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

데몬 스크립트 파일 : /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]#

 

 

1c9d376e3bb4c73b21d6d61e4b10ad55_1664343311_2464.png
 

 

 

 


관련자료

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

공지사항


뉴스광장


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