Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#272723 - 21/12/2005 15:26 Linux Init Question
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
A little background: We are running D3 emulation on linux. D3 is an old pick mainframe that has been ported for modern hardware. The software just runs inside the D3 environment.

The problem is that when D3 starts automatically, quite a few of the printers do NOT work. The only way to make them work is to stop D3 and restart it. When I run D3 by hand, the printers just work. Currently, I am calling D3 from the last line in the rc.local script. This is, of course, being called by S99local in rc3.d.

The question:
Is there a way to make rc.local wait say, 30 seconds after all other commands are processed to start the D3 process? I mean, I could take it out altogether, but in the case of a problem on a week-end, it means D3 will not start properly on its own. My gut feeling is that there's a race-condition with the equinox drivers and D3 is beating the drivers up. Any thoughts?

Another possibility, it appears the equinox drivers are getting started by rc.local as well. Could they safely be moved? I can't figure why not, but I'm no expert.

TIA

Top
#272724 - 21/12/2005 15:38 Re: Linux Init Question [Re: lectric]
robricc
carpal tunnel

Registered: 30/10/2000
Posts: 4931
Loc: New Jersey, USA
Would inserting 'sleep 30s' in the line before work?
_________________________
-Rob Riccardelli
80GB 16MB MK2 090000736

Top
#272725 - 21/12/2005 15:39 Re: Linux Init Question [Re: robricc]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London
Quote:
Would inserting 'sleep 30s' in the line before work?


It can't be that simple, that's what I thought, I'd be amazed if I was right

Top
#272726 - 21/12/2005 15:44 Re: Linux Init Question [Re: robricc]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
Are you serious? I'd kick something if it were that simple. I DID just move the equinox stty setups from rc.local to it's own S92Equinox file, since I'm thinking it's mainly the equinox printers that don't work. I'll have to verify that though. Do those commands wait for the previous command to finish before they kick off? Oh, and since it's a production box, I need to be fairly sure before I reboot the thing to test it.


Edited by lectric (21/12/2005 15:46)

Top
#272727 - 21/12/2005 15:50 Re: Linux Init Question [Re: lectric]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
Wow, I see that sleep command in other sscripts, only no s. just sleep 1 I assume sleeps 1 second. Cool.

Top
#272728 - 21/12/2005 16:43 Re: Linux Init Question [Re: lectric]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London
Quote:
sleep 1 I assume sleeps 1 second. Cool.


Yup

Top
#272729 - 21/12/2005 16:45 Re: Linux Init Question [Re: lectric]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London
Quote:
Do those commands wait for the previous command to finish before they kick off?


Yup

Top
#272730 - 21/12/2005 17:13 Re: Linux Init Question [Re: tahir]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
In that case, all should be golden. Thanks guys.

Top