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
0c5afc87
Commit
0c5afc87
authored
Jun 01, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make reading easier.
Reindent and remove "%" nesting.
parent
e2f67bcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
slapos/recipe/agent/__init__.py
slapos/recipe/agent/__init__.py
+16
-11
No files found.
slapos/recipe/agent/__init__.py
View file @
0c5afc87
...
@@ -89,17 +89,22 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe):
...
@@ -89,17 +89,22 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe):
agent_crond_path
=
os
.
path
.
join
(
self
.
crond
,
"agent"
)
agent_crond_path
=
os
.
path
.
join
(
self
.
crond
,
"agent"
)
agent_crond
=
open
(
agent_crond_path
,
"w"
)
agent_crond
=
open
(
agent_crond_path
,
"w"
)
agent_crond
.
write
(
"*/5 * * * * %s -S %s
\
n
"
%
\
agent_crond
.
write
(
"*/5 * * * * %s -S %s --pidfile=%s %s
\
n
"
%
(
(
self
.
options
[
"python_binary"
],
self
.
options
[
"python_binary"
],
"%s --pidfile=%s %s"
%
\
self
.
options
[
"agent_binary"
],
(
self
.
options
[
"agent_binary"
],
self
.
options
[
"pidfile"
],
self
.
options
[
"pidfile"
],
configuration_path
)))
configuration_path
,
agent_crond
.
write
(
"1 0 * * * %s -S %s %s
\
n
"
%
\
))
(
self
.
options
[
"python_binary"
],
agent_crond
.
write
(
"1 0 * * * %s -S %s %s
\
n
"
%
(
self
.
options
[
"report_start"
],
configuration_path
))
self
.
options
[
"python_binary"
],
agent_crond
.
write
(
"59 23 * * * %s -S %s %s
\
n
"
%
\
self
.
options
[
"report_start"
],
(
self
.
options
[
"python_binary"
],
configuration_path
self
.
options
[
"report_stop"
],
configuration_path
))
))
agent_crond
.
write
(
"59 23 * * * %s -S %s %s
\
n
"
%
(
self
.
options
[
"python_binary"
],
self
.
options
[
"report_stop"
],
configuration_path
,
))
agent_crond
.
close
()
agent_crond
.
close
()
return
self
.
path_list
+
[
configuration_path
,
key_filepath
,
cert_filepath
,
agent_crond_path
]
return
self
.
path_list
+
[
configuration_path
,
key_filepath
,
cert_filepath
,
agent_crond_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