0a91878fd5
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2384 2a923420-c742-0410-a762-8d5b09965624
18 lines
349 B
Plaintext
Executable File
18 lines
349 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
source /mod/webif/lib/setup
|
|
require lock
|
|
|
|
set file [lindex $argv 0]
|
|
set dir [file dirname $file]
|
|
|
|
# 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
|
|
|
|
exec /mod/webif/lib/bin/auto -single $dir
|
|
|