Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
d313785b
Commit
d313785b
authored
Oct 24, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preven multiple start of condor deamons
parent
cb875096
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
slapos/recipe/condor/__init__.py
slapos/recipe/condor/__init__.py
+2
-2
slapos/recipe/condor/configure.py
slapos/recipe/condor/configure.py
+1
-1
No files found.
slapos/recipe/condor/__init__.py
View file @
d313785b
...
...
@@ -177,10 +177,10 @@ class Recipe(GenericBaseRecipe):
#elif self.role == "execute":
# binary = os.path.join(self.wrapper_bin, 'condor_run')
start_bin
=
os
.
path
.
join
(
self
.
wrapper_sbin
,
'condor_master'
)
restart_bin
=
os
.
path
.
join
(
self
.
wrapper_sbin
,
'condor_restart
'
)
condor_status
=
os
.
path
.
join
(
self
.
wrapper_bin
,
'condor_status
'
)
wrapper
=
self
.
createPythonScript
(
start_condor
,
'%s.configure.condorStart'
%
__name__
,
dict
(
start_bin
=
start_bin
,
restart_bin
=
restart_bin
)
dict
(
start_bin
=
start_bin
,
condor_status
=
condor_status
)
)
path_list
.
append
(
wrapper
)
return
path_list
...
...
slapos/recipe/condor/configure.py
View file @
d313785b
...
...
@@ -48,7 +48,7 @@ def submitJob(args):
def
condorStart
(
args
):
"""Start Condor if deamons is currently stopped"""
result
=
os
.
system
(
args
[
'
restart_bin
'
])
result
=
os
.
system
(
args
[
'
condor_status
'
])
if
result
!=
0
:
#process failled to restart that mean that condor deamons is not curently started
os
.
system
(
args
[
'start_bin'
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment