Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/sitescripts/manifests/keep_alive_services.pp

Issue 29329307: Issue 3211 - Integrate customservice::supervisor with notification daemon (Closed)
Patch Set: Created Oct. 20, 2015, 10:49 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # == Class: sitescripts::keep_alive_services
2 #
3 # Periodically check for and revive dead service instances.
4 #
5 class sitescripts::keep_alive_services {
Wladimir Palant 2015/10/21 11:05:26 I don't think that this belongs in the sitescripts
mathias 2015/10/21 11:44:01 I believe that a separation is not necessary: It i
Wladimir Palant 2015/10/21 12:07:06 That's not how we use sitescripts, and it really i
6
7 sitescripts::configfragment {'keep_alive_services':
8 content => template('sitescripts/keep_alive_services.erb'),
9 }
10
11 cron {'sitescripts::keep_alive_services':
12 command => 'python -m sitescripts.management.bin.start_services',
13 environment => concat(hiera('cron::environment', []), [
14 'PYTHONPATH=/opt/sitescripts',
15 ]),
16 require => Sitescripts::Configfragment['keep_alive_services'],
17 }
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld