1. rc ÈÀÏÀ» ÁöÁ¤ÇÑ´Ù.
# ln /etc/init.d/acct /etc/rc2.d/S22acct
# ln /etc/init.d/acct /etc/rc0.d/K22acct
2. cron ÀÛ¾÷À» µî·ÏÇÑ´Ù.
2.1 /var/spool/cron/crontab/adm ÈÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
0 * * * * /usr/lib/acct/ckpacct
0 1 * * 1-6 /usr/lib/acct/dodisk
0 2 * * 1-6 /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log
15 5 1 * * /usr/lib/acct/monacct
½Ã°£µéÀº »ç¿ëÀÚÀÇ ¸ñÀû¿¡ ¸Â°Ô º¯°æÇÒ ¼ö ÀÖ´Ù.
2.2 /var/spool/cron/crontab/root ÈÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
3. ½Ã½ºÅÛÀ» rebootÇÏ¸é º¯°æ»çÇ×ÀÌ Àû¿ëµÈ´Ù.
4. ½Ã½ºÅÛÀ» rebootÇÏÁö ¾Ê°í accountingÀ» Àû¿ëÇÏ·Á¸é 2¹ø cron ÀÛ¾÷À»
# env EDITOR=vi crontab -e adm
À» ½ÇÇàÇÏ¿© µî·ÏÇÏ°í,
# /usr/lib/acct/startup
¸¦ ½ÇÇà½ÃŲ´Ù.
5. ½ÇÇàµÈ ÇÁ·Î¼¼½ºµéÀÇ Á¤º¸´Â ´ÙÀ½°ú °°ÀÌ °£´ÜÈ÷ ¾Ë¾Æ º¼ ¼ö ÀÖ´Ù.
# lastcomm
ls root pts/18 0.01 secs Mon Mar 27 17:25
ls root pts/18 0.01 secs Mon Mar 27 17:25
ls root pts/18 0.02 secs Mon Mar 27 17:25
startup root pts/18 0.01 secs Mon Mar 27 17:25
rm root pts/18 0.01 secs Mon Mar 27 17:25
6. acct¸¦ Á¾·áÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.
# /usr/lib/acct/shutacct
7. Âü°í ¹®Çå
½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ ¸Þ´º¾ó ÆäÀÌÁö¸¦ Âü°íÇÑ´Ù.
acct(1M), acctsh(1M), lastcomm(1)
¿¹Á¦)
man acct
|