Binds services to their database

This commit is contained in:
pierreozoux 2014-12-03 17:07:23 +00:00
parent 04da0f7490
commit f50adc29f2
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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