Re: How to detect that runlevel switch is done

2005-09-15 Thread John Hasler
Reinhard writes: > I would like to know how to determine from within a shell script when > everything has been done. The only way I can think of to do that is to add a script that gets run last to each level. Have it touch a file in /var/run or something. -- John Hasler -- To UNSUBSCRIBE, ema

Re: How to detect that runlevel switch is done

2005-09-15 Thread xcvb
- Original von: Thomas Adam <[EMAIL PROTECTED]>: > Yes, see the "runlevel" command: > > man 8 runlevel > > It tells you the previous and current runlevel. Yes, I know that, but "runlevel" reports the new RL immediately after "init 2" f.e. But it takes some time until all apps of the previous

Re: How to detect that runlevel switch is done

2005-09-15 Thread Thomas Adam
--- [EMAIL PROTECTED] wrote: > Hi everyone, > > is there a standard way how to detect that switching the runlevel has > finished? Yes, see the "runlevel" command: man 8 runlevel It tells you the previous and current runlevel. -- Thomas Adam __

How to detect that runlevel switch is done

2005-09-15 Thread xcvb
Hi everyone, is there a standard way how to detect that switching the runlevel has finished? Our target machines are standalone running industrial PC's normally operating at RL 3. When an event occurs we want to switch RL 2. Some applications from RL 3 need a few seconds to terminate. Further w