Bug#390680: prevent concurrent fai runs

2006-10-02 Thread Holger Levsen
package: fai-client
severity: wishlist
version: 3.0

Hi,

it would be great, if /usr/sbin/fai would check, if there is another 
fai-process running and if so, exit with an error-msg and an error.

Reasoning: with softupdates and many admins working on one machine this is a 
possible scenario for desaster... 


regards,
Holger


pgp14OZG0VhCv.pgp
Description: PGP signature


Bug#390680: prevent concurrent fai runs

2006-10-02 Thread Thomas Lange
 On Mon, 2 Oct 2006 16:35:27 +0200, Holger Levsen [EMAIL PROTECTED] said:

 it would be great, if /usr/sbin/fai would check, if there is another 
 fai-process running and if so, exit with an error-msg and an error.
Currently this is checked but not for softupdates

in bin/fai: 

stamp=/var/run/fai/FAI_INSTALLATION_IN_PROGRESS
.
.
.
[ -f $stamp ]  {
   echo $0 already running, aborting
   exit 1
}


But fai softupdates uses another stamp file, that's the reason why it does
not work. from lib/subroutines:
local stamp=/var/run/fai/fai_softupdate_is_running

Will be fixed soon.
-- 
regards Thomas