Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hidra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steinbac
hidra
Commits
5f737188
Commit
5f737188
authored
9 years ago
by
Manuela Kuhn
Browse files
Options
Downloads
Patches
Plain Diff
ZMQ only gets triggered by onModify Events
parent
5ed12fb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lsyncd.conf
+38
-38
38 additions, 38 deletions
lsyncd.conf
with
38 additions
and
38 deletions
lsyncd.conf
+
38
−
38
View file @
5f737188
...
...
@@ -20,42 +20,42 @@ local formats = { jpg = true, tif = true, cbf = true, log = true }
local
folders
= {
"/local"
,
"/current/raw"
,
"/commissioning/raw"
}
gpfs
= {
maxProcesses
=
50
,
onCreate
=
function
(
event
)
--
check
if
in
relevant
subfolder
local
location
=
false
for
i
,
path
in
ipairs
(
folders
)
do
if
string
.
sub
(
event
.
path
,
1
,
string
.
len
(
path
)) ==
path
then
location
=
true
break
end
end
if
location
==
false
then
return
end
if
event
.
isdir
then
for
i
,
path
in
ipairs
(
folders
)
do
if
path
==
event
.
pathname
then
return
end
end
spawn
(
event
,
'/bin/mkdir'
,
event
.
targetPath
)
else
--
check
filetype
local
extension
=
string
.
match
(
event
.
name
,
".*%.([^.]+)$"
)
if
formats
[
extension
] ~=
true
then
return
end
spawn
(
event
,
'/usr/bin/python'
,
'/space/projects/Live_Viewer/wrapper_script.py'
,
'--mv_source'
,
event
.
sourcePath
,
'--mv_target'
,
event
.
targetPathdir
)
--
maxProcesses
=
50
,
--
onCreate
=
function
(
event
)
--
--
check
if
in
relevant
subfolder
--
local
location
=
false
--
for
i
,
path
in
ipairs
(
folders
)
do
--
if
string
.
sub
(
event
.
path
,
1
,
string
.
len
(
path
)) ==
path
then
--
location
=
true
--
break
--
end
--
end
--
if
location
==
false
then
return
end
--
--
if
event
.
isdir
then
--
for
i
,
path
in
ipairs
(
folders
)
do
--
if
path
==
event
.
pathname
then
return
end
--
end
--
spawn
(
--
event
,
--
'/bin/mkdir'
,
--
event
.
targetPath
--
)
--
else
--
--
check
filetype
--
local
extension
=
string
.
match
(
event
.
name
,
".*%.([^.]+)$"
)
--
if
formats
[
extension
] ~=
true
then
return
end
--
--
spawn
(
--
event
,
--
'/usr/bin/python'
,
--
'/space/projects/Live_Viewer/wrapper_script.py'
,
--
'--mv_source'
,
--
event
.
sourcePath
,
--
'--mv_target'
,
--
event
.
targetPathdir
--
)
--
spawn
(
--
event
,
...
...
@@ -63,8 +63,8 @@ gpfs = {
--
event
.
sourcePath
,
--
event
.
targetPathdir
-- )
end
end
,
--
end
--
end
,
onModify
=
function
(
event
)
if
event
.
isdir
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment