buildd: make sure the buildd service is disabled and not running
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 23 Feb 2017 13:38:12 +0000 (14:38 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 23 Feb 2017 13:39:52 +0000 (14:39 +0100)
This is a leftover init script from the official buildd package, our
setup uses cron to (re)start the build daemon.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/buildd/manifests/init.pp

index 3aa3080..8b6514e 100644 (file)
@@ -106,6 +106,11 @@ class buildd ($ensure=present) {
                        content => "*/5 * * * * root /usr/local/sbin/buildd-schroot-aptitude-kill\n",
                }
 
+               service { 'buildd':
+                       enable = false,
+                       ensure => 'stopped',
+               }
+
                if $has_srv_buildd {
                        file { '/etc/cron.d/puppet-update-buildd-schroots':
                                content  => "13 21 * * 0,3 root PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin setup-all-dchroots buildd\n",