]> khamidou — GitHub mirrors - kite.git/commitdiff
got a functional supervisord setup
authorkarim hamidou <khamidou@gmail.com>
Sat, 7 Dec 2013 15:18:42 +0000 (16:18 +0100)
committerkarim hamidou <khamidou@gmail.com>
Sat, 7 Dec 2013 15:18:42 +0000 (16:18 +0100)
puppet_modules/supervisord/manifests/init.pp

index c6f5d6da505025b4e17345ec98cda3e5c3937f76..c8e2d344f775284b1757da7bbd78a0f9afdbe412 100644 (file)
@@ -24,11 +24,16 @@ class supervisord ($maildirs, $appdir) {
     service {'supervisor':
         ensure => running,
         enable => true,
-        hasstatus => true,
-        hasrestart => true,
-        path => "/etc/init.d/",
         provider => 'init',
         require => [Package["supervisor"], File["/etc/supervisord.conf"],
-                    File["/etc/supervisord.conf"]]
+                    File["/etc/init.d/supervisor"]]
+    }
+
+    # FIXME: For some reason "service" doesn't setup supervisor to run at
+    # boot time, so we've got to call update rc.d manually.
+    exec {'update_rcd':
+        command => "update-rc.d supervisor defaults",
+        path => ["/usr/sbin", "/usr/bin/", "/sbin"],
+        require => [Service['supervisor']],
     }
 }