From 750e43518f8d2b67b7c94eb453fb0e7429d5039b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 22 Aug 2016 23:18:07 -0700 Subject: [PATCH] puppet: Ensure supervisord starts on boot with systemd. This is important to ensure that Zulip comes up properly after a reboot on Ubuntu Xenial. --- puppet/zulip/manifests/supervisor.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/puppet/zulip/manifests/supervisor.pp b/puppet/zulip/manifests/supervisor.pp index d9c041819f..c103f83c58 100644 --- a/puppet/zulip/manifests/supervisor.pp +++ b/puppet/zulip/manifests/supervisor.pp @@ -39,4 +39,11 @@ class zulip::supervisor { source => "puppet:///modules/zulip/supervisor/supervisord.conf", notify => Service["supervisor"], } + + if $zulip::base::release_name == "xenial" { + exec {"enable supervisor": + unless => "systemctl is-enabled supervisor", + command => "systemctl enable supervisor", + } + } }