The thing is that as soon as I get a display (run level 5 is entered), one of the relays are opened. I have set the script to run on all run levels thus it does run on runlevel 5, it just runs before something else. What could the "something else" be? Where can I see in what order stuff are started for runlevel 5? Thanks. Pieter Botha On Wednesday 19 January 2005 13:56, Martin Deppe wrote:
Pieter Botha wrote:
I need to run a program which resets my LPT port on startup (LPT is connected to garden system and if any of the relays are open, then some stuff in the garden are turned on). I see that as soon as X is started, some relays are opened and I need to run a program to set them back off (closed). The software already works, the trick is to start it as soon as X start as well as when the PC reboots. Any hints?
Pieter Botha
You can launch your program from /etc/rc.d/boot.local (this is meant for such things) :-)
And in case I understand you right that it ALSO happens when you start X you also need to put it into the X startup file (like .xinitrc or so), but I don't know exactly which one to use for that :-(
Yours Martin
-- Public PGP key can be obtained from : hkp:/wwwkeys.eu.pgp.net by searching for : bothapn@lantic.net