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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
41b42af9
Commit
41b42af9
authored
Nov 16, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SIGHUP to stunnel recipe in order to reload stunnel configuration.
parent
4ea644e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
slapos/recipe/stunnel/__init__.py
slapos/recipe/stunnel/__init__.py
+9
-1
No files found.
slapos/recipe/stunnel/__init__.py
View file @
41b42af9
...
...
@@ -24,6 +24,9 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
os
import
signal
from
slapos.recipe.librecipe
import
GenericBaseRecipe
class
Recipe
(
GenericBaseRecipe
):
...
...
@@ -46,7 +49,6 @@ class Recipe(GenericBaseRecipe):
pid_file
=
self
.
options
[
'pid-file'
]
conf
.
update
(
pid_file
=
pid_file
)
path_list
.
append
(
pid_file
)
log_file
=
self
.
options
[
'log-file'
]
conf
.
update
(
log
=
log_file
)
...
...
@@ -72,4 +74,10 @@ class Recipe(GenericBaseRecipe):
)
path_list
.
append
(
wrapper
)
if
os
.
path
.
exists
(
pid_file
):
with
open
(
pid_file
,
'r'
)
as
file_
:
pid
=
file_
.
read
().
strip
()
# Reload configuration
os
.
kill
(
int
(
pid
,
10
),
signal
.
SIGHUP
)
return
path_list
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