manual scheduling

git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2384 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg
2015-04-14 00:09:47 +00:00
parent 2e3ce0aed1
commit 0a91878fd5
12 changed files with 391 additions and 9 deletions

View File

@@ -1,8 +1,17 @@
#!/mod/bin/jimsh
set file [lindex $argv 0]
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