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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joanne Hugé
slapos
Commits
188f8833
Commit
188f8833
authored
Oct 04, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restart apache to take boinc config in consideration
parent
4b05a7da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
slapos/recipe/boinc/__init__.py
slapos/recipe/boinc/__init__.py
+11
-3
No files found.
slapos/recipe/boinc/__init__.py
View file @
188f8833
...
@@ -28,6 +28,7 @@ from slapos.recipe.librecipe import GenericBaseRecipe
...
@@ -28,6 +28,7 @@ from slapos.recipe.librecipe import GenericBaseRecipe
import
os
import
os
import
subprocess
import
subprocess
import
pwd
import
pwd
import
signal
class
Recipe
(
GenericBaseRecipe
):
class
Recipe
(
GenericBaseRecipe
):
"""Deploy a fully operational boinc architecture."""
"""Deploy a fully operational boinc architecture."""
...
@@ -66,12 +67,12 @@ class Recipe(GenericBaseRecipe):
...
@@ -66,12 +67,12 @@ class Recipe(GenericBaseRecipe):
self
.
pythonbin
=
options
[
'python-binary'
].
strip
()
self
.
pythonbin
=
options
[
'python-binary'
].
strip
()
#Apache php informations
#Apache php informations
self
.
wwwdata
=
options
[
'www-data'
].
strip
()
self
.
ipv6
=
options
[
'ip'
].
strip
()
self
.
ipv6
=
options
[
'ip'
].
strip
()
self
.
port
=
options
[
'port'
].
strip
()
self
.
port
=
options
[
'port'
].
strip
()
self
.
httpd_conf
=
options
[
'httpd-conf'
].
strip
()
self
.
httpd_conf
=
options
[
'httpd-conf'
].
strip
()
self
.
apachewrapper
=
options
[
'apache-wrapper'
].
strip
()
self
.
apachewrapper
=
options
[
'apache-wrapper'
].
strip
()
self
.
htpasswd
=
options
[
'htpasswd'
].
strip
()
self
.
htpasswd
=
options
[
'htpasswd'
].
strip
()
self
.
apachepid
=
options
[
'pid-file'
].
strip
()
self
.
apachebin
=
options
[
'apache-bin'
].
strip
()
self
.
apachebin
=
options
[
'apache-bin'
].
strip
()
self
.
phpini
=
options
[
'php-ini'
].
strip
()
self
.
phpini
=
options
[
'php-ini'
].
strip
()
self
.
phpbin
=
options
[
'php-bin'
].
strip
()
self
.
phpbin
=
options
[
'php-bin'
].
strip
()
...
@@ -231,6 +232,15 @@ class Recipe(GenericBaseRecipe):
...
@@ -231,6 +232,15 @@ class Recipe(GenericBaseRecipe):
)
)
path_list
.
append
(
start_wrapper
)
path_list
.
append
(
start_wrapper
)
if
os
.
path
.
exists
(
self
.
apachepid
):
#Reload apache configuration for boinc allias.
with
open
(
self
.
options
[
'pid-file'
])
as
pid_file
:
pid
=
int
(
pid_file
.
read
().
strip
(),
10
)
try
:
os
.
kill
(
pid
,
signal
.
SIGUSR1
)
# Graceful restart
except
OSError
:
pass
return
path_list
return
path_list
update
=
install
update
=
install
...
@@ -306,8 +316,6 @@ class App(GenericBaseRecipe):
...
@@ -306,8 +316,6 @@ class App(GenericBaseRecipe):
return
path_list
return
path_list
update
=
install
class
Client
(
GenericBaseRecipe
):
class
Client
(
GenericBaseRecipe
):
"""Deploy a fully fonctionnal boinc client connected to a boinc server instance"""
"""Deploy a fully fonctionnal boinc client connected to a boinc server instance"""
...
...
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