We had a cronjob that would run dsa-is-shutdown-scheduled every two
minutes and touch a file in /run that was then exposed via apache
as /shutdown-in-progress. However, nothing appears to use this.
In particular, the fastly health checker uses /_health which is
backed by a service specific health service.
+++ /dev/null
-<Directory /run/dsa/shutdown-marker>
- Require all granted
-</Directory>
-Alias /shutdown-in-progress /run/dsa/shutdown-marker/shutdown-in-progress
}
apache2::config { 'local-scheduled-shutdown':
- source => 'puppet:///modules/apache2/local-scheduled-shutdown',
+ ensure => 'absent',
}
}
#
class webserver {
include webserver::defaultpage
-
- file { '/etc/cron.d/puppet-export-scheduled-shutdown': ensure => absent, }
- concat::fragment { 'puppet-crontab--webserver-export-shutdown':
- target => '/etc/cron.d/puppet-crontab',
- content => @(EOF)
- */2 * * * * root mkdir -p /run/dsa/shutdown-marker; if dsa-is-shutdown-scheduled; then echo 'system-in-shutdown' > /run/dsa/shutdown-marker/shutdown-in-progress; else rm -f /run/dsa/shutdown-marker/shutdown-in-progress; fi
- | EOF
- }
}