1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

BindTo docker in example systemd service

BindTo=docker.service ensures, that the service is stopped or restarted
whenever docker is. This is more sane behavior if no docker restart policy is
given (i.e. --restart=always).
This commit is contained in:
Tobias Florek
2015-07-09 10:16:08 +02:00
parent bd7b607d38
commit 3959e296ae

View File

@@ -126,6 +126,7 @@ cat root/etc/systemd/system/httpd_template.service
[Unit]
Description=The Apache HTTP Server for TEMPLATE
After=docker.service
BindTo=docker.service
[Service]
ExecStart=/usr/bin/docker start TEMPLATE