summaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/named.service.j2
blob: 6e0a7a64048a7115d57c9011cd0011e2c0bf8276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Requires={{ openshift.docker.service_name }}.service
After={{ openshift.docker.service_name }}.service
PartOf={{ openshift.docker.service_name }}.service

[Service]
Type=simple
TimeoutStartSec=5m
ExecStartPre=/usr/bin/docker run --rm -v /etc/named.conf:/etc/named.conf -v /var/named:/var/named:z bind named-checkconf -z /etc/named.conf
ExecStartPre=-/usr/bin/docker rm -f bind
ExecStart=/usr/bin/docker run --name bind -p 53:53/udp -v /var/log:/var/log -v /etc/named.conf:/etc/named.conf -v /var/named:/var/named:z bind
ExecStop=/usr/bin/docker stop bind

[Install]
WantedBy={{ openshift.docker.service_name }}.service