2015-04-10 22:01:51 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2015-04-14 00:09:47 +00:00
|
|
|
source /mod/webif/lib/setup
|
|
|
|
require lock
|
2015-04-10 22:01:51 +00:00
|
|
|
|
2015-04-14 00:09:47 +00:00
|
|
|
set file [lindex $argv 0]
|
2015-04-10 22:01:51 +00:00
|
|
|
set dir [file dirname $file]
|
|
|
|
|
2015-04-14 00:09:47 +00:00
|
|
|
# Wait up to 10 minutes for any existing auto process to finish...
|
|
|
|
if {![acquire_lock webif_auto 600]} {
|
|
|
|
puts "Cannot acquire exclusive lock, terminating."
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
release_lock webif_auto
|
|
|
|
|
2015-04-10 22:01:51 +00:00
|
|
|
exec /mod/webif/lib/bin/auto -single $dir
|
|
|
|
|