Lock file erroneous logics

tillo

Verified User
Joined
Oct 28, 2007
Messages
862
Location
Switzerland
The .custombuild file is meant to keep CustomBuild from running if there is an instance running, but:

- if I send a SIGTERM to a running CustomBuild, it doesn't remove the lock file
- if I run a concurrent CustomBuild it doesn't run any function but it removes the lock file when exiting, which is just plain wrong
- if I run a concurrent CustomBuild to compile PHP (maybe others too, didn't check) it doesn't compile but it will restart Apache anyway

If the developer didn't know about it, bash can definitely trap signals: http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_02.html
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,005
Ah, nice. I wasn't aware shell scripts could trap signals. I'm going to look at this for the script.

Thanks!
John
 
Top