From bf2ac102e2fa800ef5baf0a7fcc5e60575fdaba0 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 4 Jan 2017 16:32:16 +0000 Subject: [PATCH] Restart apache and celeryd on upgrade When upgrading, after the migrate exec completes, notify the apache2 and askbot-celeryd services so they will be restarted. Change-Id: I0a7f3987d782c52e85aa2f87186d2beb367d5b6b --- manifests/site/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/site/config.pp b/manifests/site/config.pp index a23e931..5deed7c 100644 --- a/manifests/site/config.pp +++ b/manifests/site/config.pp @@ -90,10 +90,10 @@ class askbot::site::config ( refreshonly => true, } - # TODO: end of chain: notify httpd, celeryd exec { 'askbot-migrate': cwd => "${site_root}/config", command => '/usr/askbot-env/bin/python manage.py migrate --noinput', + notify => [Service['askbot-celeryd'], Service['apache2'] ], require => Exec['askbot-syncdb'], subscribe => [Git['askbot'], File["${site_root}/config/settings.py"] ], refreshonly => true,