1833839 Members
2656 Online
110063 Solutions
New Discussion

Re: RC.LOG Issue

 
Riccardo Capuzzi_1
Frequent Advisor

RC.LOG Issue

Hi All,
i have my /etc/rc.log that is growing too much because of java error logging in it.
Is there a way to avoid this kind of logs or a way to tune rc.log?

Best Regards,
Riccardo Capuzzi
5 REPLIES 5
RAC_1
Honored Contributor

Re: RC.LOG Issue

Modify the script that starts java to log somewhere else. The rc script should log only the important error in rc.log and not all errors.
There is no substitute to HARDWORK
Peter Godron
Honored Contributor

Re: RC.LOG Issue

Riccardo,
rc.log should only reflect errors encountered during startup i.e. when the startup scripts are running.
I would suggest looking at the startup script that is generating all the errors and editing the script to log the errors via the redirect '>'

example:
script.sh > script.log 2>&1
Riccardo Capuzzi_1
Frequent Advisor

Re: RC.LOG Issue

Is there a way to configure rc.log?
AwadheshPandey
Honored Contributor

Re: RC.LOG Issue

Link for you. http://docs.hp.com/en/934/startup.pdf

Awadhesh
It's kind of fun to do the impossible
Ninad_1
Honored Contributor

Re: RC.LOG Issue

Riccardo,

rc.log is the log file used by the rc script when starting all thestartup scripts in the /sbin/rc?.d directories as per run levels.
Now you need to check which startup script is starting your java program - you can check the scripts in /sbin/init.d - to check which script is starting your java program, and then as suggested above redirect the errors to a different file.

Regards,
Ninad