Operating System - HP-UX
1833771 Members
2093 Online
110063 Solutions
New Discussion

rc.log logging port open errors

 
SOLVED
Go to solution
John Carver
Frequent Advisor

rc.log logging port open errors

I traced a full / filesystem to the /etc/rc.log continually logging "Port /dev/tty0p1 Open Error" errors. This tty device is for the UPS Manager. I unconfigured this in SAM, commented out the entries in /etc/inittab and issued "init q" to re-read and commented out the lines in /etc/ups_conf. The errors are still being logged. I may be attacking this from the wrong angle. What am I missing?
2 REPLIES 2
Tim Nelson
Honored Contributor
Solution

Re: rc.log logging port open errors

Typically the /etc/rc.log is used as output for the /sbin/rc script. ( unless your inittab specifically redirects output for your UPs daemon.

So I would suspect there may be an rc script in /sbin/init.d/* that is run during boot and holding open the /etc/rc.log.

If you have losf, use it to see what PID has the rc.log file open. Maybe now that you have disabled it you still need to kill it.

John Carver
Frequent Advisor

Re: rc.log logging port open errors

I don't have lsof on this server so I ran fuser instead on the rc.log file. There were a number a processes holding the file open including the NFS processes. I did find a process that belonged to a third party power monitor that was still running. I went and killed the process and removed the start and stop scripts since I no longer need it. The errors have stopped logging. Thanks for the second set of eyes on the problem.