Restart API also when run with Apache
Restarting services only considers those with the "panko-service" tag. So add it to the Apache service. Change-Id: Ica16ce2adaef0617c687f9e8ac658b1082732c1f
This commit is contained in:
parent
b2843fba85
commit
c7eebdb1c3
@ -136,7 +136,9 @@ class panko::api (
|
||||
tag => ['panko-service', 'panko-db-sync-service'],
|
||||
}
|
||||
Class['panko::db'] -> Service[$service_name]
|
||||
Service <| title == 'httpd' |> { tag +> 'panko-db-sync-service' }
|
||||
Service <| title == 'httpd' |> {
|
||||
tag +> ['panko-service', 'panko-db-sync-service']
|
||||
}
|
||||
|
||||
# we need to make sure panko-api/eventlet is stopped before trying to start apache
|
||||
Service['panko-api'] -> Service[$service_name]
|
||||
|
4
releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml
Normal file
4
releasenotes/notes/restart-apache-4f14dda1daf456d4.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- Deal with API being run using Apache when restarting the API (e.g. due to
|
||||
configuration changes)
|
Loading…
Reference in New Issue
Block a user