Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
54c494ab
Commit
54c494ab
authored
Jan 25, 2018
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logrotate entries for nginx, apache and supervisord processes belonging to runner.
parent
ec7b8494
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
software/slaprunner/buildout.hash.cfg
software/slaprunner/buildout.hash.cfg
+2
-2
software/slaprunner/instance-runner-export.cfg.in
software/slaprunner/instance-runner-export.cfg.in
+3
-0
software/slaprunner/instance-runner.cfg
software/slaprunner/instance-runner.cfg
+21
-0
No files found.
software/slaprunner/buildout.hash.cfg
View file @
54c494ab
...
@@ -19,7 +19,7 @@ md5sum = 713db528880282d568278f09458d2aab
...
@@ -19,7 +19,7 @@ md5sum = 713db528880282d568278f09458d2aab
[template-runner]
[template-runner]
filename = instance-runner.cfg
filename = instance-runner.cfg
md5sum =
7df86928aeef0fbada832b0283b9a454
md5sum =
e2b66ef84bb67954ebf932a0443b0059
[template-runner-import-script]
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
filename = template/runner-import.sh.jinja2
...
@@ -35,7 +35,7 @@ md5sum = 98ce179badc6af5979a64a7c3d0a2ceb
...
@@ -35,7 +35,7 @@ md5sum = 98ce179badc6af5979a64a7c3d0a2ceb
[instance-runner-export]
[instance-runner-export]
filename = instance-runner-export.cfg.in
filename = instance-runner-export.cfg.in
md5sum =
00ddcaa6e571505d1930612d12de8fde
md5sum =
d1122988652127af5e252f1503eeacab
[template-resilient]
[template-resilient]
filename = instance-resilient.cfg.jinja2
filename = instance-resilient.cfg.jinja2
...
...
software/slaprunner/instance-runner-export.cfg.in
View file @
54c494ab
...
@@ -7,11 +7,13 @@ parts +=
...
@@ -7,11 +7,13 @@ parts +=
nginx-launcher
nginx-launcher
certificate-authority
certificate-authority
ca-nginx
ca-nginx
logrotate-entry-nginx
gunicorn-launcher
gunicorn-launcher
gunicorn-graceful
gunicorn-graceful
publish-connection-information
publish-connection-information
slaprunner-promise
slaprunner-promise
apache-httpd-promise
apache-httpd-promise
logrotate-entry-apache-httpd
slaprunner-supervisord-wrapper
slaprunner-supervisord-wrapper
runner-sshd-add-authorized-key
runner-sshd-add-authorized-key
runner-sshd-graceful
runner-sshd-graceful
...
@@ -30,6 +32,7 @@ parts +=
...
@@ -30,6 +32,7 @@ parts +=
bash-profile
bash-profile
supervisord-wrapper
supervisord-wrapper
supervisord-promise
supervisord-promise
logrotate-entry-supervisord
httpd-graceful-wrapper
httpd-graceful-wrapper
## Monitoring part
## Monitoring part
## Monitor for runner
## Monitor for runner
...
...
software/slaprunner/instance-runner.cfg
View file @
54c494ab
...
@@ -4,10 +4,12 @@ parts =
...
@@ -4,10 +4,12 @@ parts =
nginx-launcher
nginx-launcher
certificate-authority
certificate-authority
ca-nginx
ca-nginx
logrotate-entry-nginx
gunicorn-launcher
gunicorn-launcher
gunicorn-graceful
gunicorn-graceful
publish-connection-information
publish-connection-information
slaprunner-promise
slaprunner-promise
logrotate-entry-apache-httpd
apache-httpd-promise
apache-httpd-promise
slaprunner-supervisord-wrapper
slaprunner-supervisord-wrapper
runner-sshd-add-authorized-key
runner-sshd-add-authorized-key
...
@@ -27,6 +29,7 @@ parts =
...
@@ -27,6 +29,7 @@ parts =
bash-profile
bash-profile
supervisord-wrapper
supervisord-wrapper
supervisord-promise
supervisord-promise
logrotate-entry-supervisord
httpd-graceful-wrapper
httpd-graceful-wrapper
{% if slapparameter_dict.get('no-ipv4-frontend', 'false') == 'false' %}
{% if slapparameter_dict.get('no-ipv4-frontend', 'false') == 'false' %}
slaprunner-frontend-promise
slaprunner-frontend-promise
...
@@ -347,6 +350,12 @@ mode = 700
...
@@ -347,6 +350,12 @@ mode = 700
context =
context =
section param_nginx_frontend nginx-frontend
section param_nginx_frontend nginx-frontend
[logrotate-entry-nginx]
<= logrotate-entry-base
name = nginx
log = $${basedirectory:log}/nginx.access.log $${basedirectory:log}/nginx.error.log
post = kill -HUP $(cat $${buildout:directory}/var/run/nginx.pid)
[httpd-parameters]
[httpd-parameters]
path_pid = $${directory:run}/httpd.pid
path_pid = $${directory:run}/httpd.pid
path_error_log = $${directory:log}/httpd-error.log
path_error_log = $${directory:log}/httpd-error.log
...
@@ -387,6 +396,12 @@ wait-for-files =
...
@@ -387,6 +396,12 @@ wait-for-files =
$${ca-nginx:cert-file}
$${ca-nginx:cert-file}
$${ca-nginx:key-file}
$${ca-nginx:key-file}
[logrotate-entry-apache-httpd]
<= logrotate-entry-base
name = apache
log = $${basedirectory:log}/httpd-access.log $${basedirectory:log}/httpd-error.log
post = test ! -s $${buildout:directory}/var/run/httpd.pid || $${buildout:directory}/bin/slapos-kill --pidfile $${buildout:directory}/var/run/httpd.pid -s USR1
[httpd-graceful-wrapper]
[httpd-graceful-wrapper]
recipe = collective.recipe.template
recipe = collective.recipe.template
input = inline:
input = inline:
...
@@ -777,6 +792,12 @@ recipe = slapos.cookbook:wrapper
...
@@ -777,6 +792,12 @@ recipe = slapos.cookbook:wrapper
command-line = $${buildout:directory}/bin/supervisord -c $${supervisord-conf:rendered} --nodaemon
command-line = $${buildout:directory}/bin/supervisord -c $${supervisord-conf:rendered} --nodaemon
wrapper-path = $${directory:services}/supervisord
wrapper-path = $${directory:services}/supervisord
[logrotate-entry-supervisord]
<= logrotate-entry-base
name = supervisord
log = $${basedirectory:log}/slapproxy.log $${basedirectory:log}/supervisord.log $${basedirectory:log}/supervisord-errors.log
post = kill -HUP $(cat $${buildout:directory}/var/run/supervisord.pid)
[supervisord-promise]
[supervisord-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = $${directory:promises}/supervisord
path = $${directory:promises}/supervisord
...
...
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