From 61e63cbd8298d10a714106e0566ecd2e21347308 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 23 Oct 2009 19:13:58 +0200 Subject: [PATCH] Add a reboot cronjob to remove no-daemon-please --- modules/buildd/files/cron.d-dsa-buildd | 1 + modules/buildd/manifests/init.pp | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 modules/buildd/files/cron.d-dsa-buildd diff --git a/modules/buildd/files/cron.d-dsa-buildd b/modules/buildd/files/cron.d-dsa-buildd new file mode 100644 index 000000000..fee216ae2 --- /dev/null +++ b/modules/buildd/files/cron.d-dsa-buildd @@ -0,0 +1 @@ +@reboot buildd [ -f ~buildd/NO-DAEMON-PLEASE ] && grep 'delete-on-boot' ~buildd/NO-DAEMON-PLEASE > /dev/null && rm -f ~buildd/NO-DAEMON-PLEASE diff --git a/modules/buildd/manifests/init.pp b/modules/buildd/manifests/init.pp index 6c8a729da..7ddd769c7 100644 --- a/modules/buildd/manifests/init.pp +++ b/modules/buildd/manifests/init.pp @@ -23,5 +23,9 @@ class buildd { source => "puppet:///buildd/mount-defaults", require => Package["sbuild"] ; + "/etc/cron.d/dsa-buildd": + source => "puppet:///buildd/cron.d-dsa-buildd", + require => Package["cron"] + ; } } -- 2.20.1