Operating System - HP-UX
1827293 Members
3758 Online
109717 Solutions
New Discussion

rc scripts a lot of "dots"

 
accent
Frequent Advisor

rc scripts a lot of "dots"

Hi.
I have one script to start and stop my applications. After created it in each system reboot I see a lot of "dots" for each start/stop process like:



Starting OpC agent processes (opcagt). ....................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
....................................................... OK
Start CDE login server ....................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
....................................................... OK

* - Refer to the file /etc/rc.log for more information.


Any knows how can I suppress these dots and have only the standard?

8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: rc scripts a lot of "dots"

Hi,

You have an rc script that's outputting all those dots. HP-UX formats all other scripts to conform to that one "rogue" script. So you'll have to search for that one & edit it back to "normal". I would probably concentrate on the non-OS supplied scripts first as I've never seen a "standard" HP-supplied script due this so check all the 3rd party ones first.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kent Ostby
Honored Contributor

Re: rc scripts a lot of "dots"

Have you provided a start_msg and stop_msg in your script ?

I believe that will stop the dots from printing.

See /sbin/init.d/acct for an example of the start_msg and stop_msg paragraphs.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Geoff Wild
Honored Contributor

Re: rc scripts a lot of "dots"

Can you post your start/stop scripts?

I attached my opcagt one - is yours the same?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: rc scripts a lot of "dots"

The "dots" are telling you that there is activity. The processes are taking time to start is why all the dots.

Bill Hassell
Honored Contributor

Re: rc scripts a lot of "dots"

This is actually a problem with the rc.utils mechanism. The dots are created automatically (not by your startup scripts). If you read /sbin/rc.utils, you'll see where it tries to handle different displays but in a strange way. What has happened is that the COLUMNS (width of the current display) has been changed to a very large value. Here's one scenario:


http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=700587

First check the start/stop messages from the script by manually running them with:

/sbin/init.d/myscript start_msg
/sbin/init.d/myscript stop_msg

Make sure that the response is a short (less than 70 chars) message. It's VERY important that start/stop messages be short.

Then try editing the /etc/rc.config.d/list_mode file and setting:

LIST_MODE=1
LIST_TIMEOUT=0
USE_COLOR=1

Finally, do a time-listing of /etc/rc.config.d and make ABSOLUTELY SURE there are no temporary files or any junk in there! *EVERY* file in that directory is run for every startup and shutdown script to set the required variables. This is a directory where you cannot keep old versions or test files.


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: rc scripts a lot of "dots"

Sorry, time-listing of a directory means:

ls -lt /etc/rc.config.d | more

The newest files pop to the top. These are usually the culprits.


Bill Hassell, sysadmin
Armin Kunaschik
Esteemed Contributor

Re: rc scripts a lot of "dots"

I've seen this problem on many of our servers.
It has nothing to do with the rc scripts.
It's probably about terminal settings.
I could not figure out where the rc scripts
get the terminal width. But sometimes it seems
that it get's the wrong width and the remaining
spaces are filled with dots.

The settings are saved somewhere. I can reproduce the
problem if I install a golden image with this "feature" on another host.
Is there a file with the default console settings?
Or the default settings for tty's or pty's?

I didn't really care about the output.
It's just a cosmetic issue...
If the boot is finished, the getty works with the right dimensions...

My 2 cent,
Armin
And now for something completely different...
Scot Bean
Honored Contributor

Re: rc scripts a lot of "dots"

I have seen this problem.

Check your custom startup script. The msgs need to be short, 60 chars or so.

The startup script tools default to the LONGEST msg, and pad everything else.