LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   pacct file in wrong location (https://www.linuxquestions.org/questions/solaris-opensolaris-20/pacct-file-in-wrong-location-514070/)

Blinker_Fluid 12-27-2006 12:18 PM

pacct file in wrong location
 
Got a question about the pacct file, I have a Solaris 9 server that is storing it in /pacct instead of /var/adm/pacct how do I get it to store it in the correct location?

I've looked at various files in /usr/lib/acct and runacct, ckpacct, monacct all seem to point to /var/adm.

Thanks
Blink.

mdhmi 12-27-2006 02:11 PM

Have you skimmed through /etc ?

Blinker_Fluid 12-27-2006 03:12 PM

Quote:

Originally Posted by mdhmi
Have you skimmed through /etc ?

Yep, looked though it.

Starting to think pacct is a bunch of voodoo and black magic. I might have figured it out...
Here's what I did:
stopped accounting /etc/rc3.d/Sxxacct stop
ran the following command:
/usr/lib/acct/accton /var/adm/pacct
stopped accounting again with the rc3.d script
restarted accounting with the rc3.d script
now my /pacct isn't growing but the /var/adm/pacct is. :D

I didn't even have to rub chicken bones on the server. ;)


All times are GMT -5. The time now is 10:37 PM.