Binds services to their database
This commit is contained in:
parent
04da0f7490
commit
f50adc29f2
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,9 @@ After=mysql@%i.service
|
|||
After=%p-importer@%i.service
|
||||
Before=%p-discovery@%i.service
|
||||
|
||||
# Dependency binding
|
||||
BindsTo=mysql@%i.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
ExecStartPre=-/usr/bin/docker kill %p-%i
|
||||
|
|
|
@ -15,6 +15,9 @@ After=mysql@%i.service
|
|||
After=%p-importer@%i.service
|
||||
Before=%p-discovery@%i.service
|
||||
|
||||
# Dependency binding
|
||||
BindsTo=mysql@%i.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
ExecStartPre=-/usr/bin/docker kill %p-%i
|
||||
|
|
Loading…
Reference in a new issue