Prevent systemd unit files to be created to restart services
This patch removes the code that create/modify Systemd unit files so the services restart. We did it after Newton when we switched the services to be managed under Systemd to automatically restart. With containers, we don't want / need that anymore. In Pike, Queens and Rocky, containers are restarted by the Docker Engine. In Stein, containers are restarted by Systemd (which restart podman containers) but the unit files are now managed by Paunch. To avoid weird behaviors, let's clean this up. Change-Id: I82dca36b3c9ebf4243d270ac91ffbf6ad56d6ca6
This commit is contained in:
parent
59c5708955
commit
b69a1834ac
@ -35,12 +35,6 @@ class tripleo::profile::base::apache(
|
||||
include ::apache::mod::status
|
||||
include ::apache::mod::ssl
|
||||
|
||||
# Automatic restart
|
||||
::systemd::dropin_file { 'httpd.conf':
|
||||
unit => 'httpd.service',
|
||||
content => "[Service]\nRestart=always\n",
|
||||
}
|
||||
|
||||
if $enable_status_listener {
|
||||
if !defined(Apache::Listen[$status_listener]) {
|
||||
::apache::listen {$status_listener: }
|
||||
|
@ -28,11 +28,5 @@ class tripleo::profile::base::memcached (
|
||||
) {
|
||||
if $step >= 1 {
|
||||
include ::memcached
|
||||
|
||||
# Automatic restart
|
||||
::systemd::dropin_file { 'memcached.conf':
|
||||
unit => 'memcached.service',
|
||||
content => "[Service]\nRestart=always\n",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user