Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
3e3afe4a
Commit
3e3afe4a
authored
Feb 14, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restart BOINC server just when it's needed
parent
c4bce82e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
slapos/recipe/boinc/__init__.py
slapos/recipe/boinc/__init__.py
+1
-1
slapos/recipe/boinc/configure.py
slapos/recipe/boinc/configure.py
+2
-1
No files found.
slapos/recipe/boinc/__init__.py
View file @
3e3afe4a
...
...
@@ -208,7 +208,7 @@ class Recipe(GenericBaseRecipe):
#Generate Boinc start project wrapper
start_args
=
[
os
.
path
.
join
(
self
.
installroot
,
'bin/start'
)]
start_boinc
=
os
.
path
.
join
(
self
.
home
,
'.start_boinc'
)
if
os
.
path
.
exists
(
start_boinc
):
if
os
.
path
.
exists
(
start_boinc
)
and
drop_install
:
os
.
unlink
(
start_boinc
)
boinc_parameter
=
dict
(
service_status
=
service_status
,
installroot
=
self
.
installroot
,
drop_install
=
drop_install
,
...
...
slapos/recipe/boinc/configure.py
View file @
3e3afe4a
...
...
@@ -73,7 +73,8 @@ def restart_boinc(args):
if
args
[
'drop_install'
]:
checkFile
(
args
[
'service_status'
],
3
)
else
:
checkMysql
(
args
)
print
"Skip BOINC restart..."
return
print
"Restart Boinc..."
env
=
os
.
environ
env
[
'PATH'
]
=
args
[
'environment'
][
'PATH'
]
...
...
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