forked from hummypkg/webif
manual scheduling
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2384 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user