16 lines
464 B
Desktop File
16 lines
464 B
Desktop File
[Unit]
|
|
Description=BIND9 Container
|
|
After=docker.service
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
TimeoutStartSec=0
|
|
Restart=always
|
|
ExecStartPre=-/usr/bin/docker stop bind9
|
|
ExecStartPre=-/usr/bin/docker rm bind9
|
|
# note: this container is actually provding DNS service, so when that is missing, the pull fails.
|
|
# ExecStartPre=/usr/bin/docker pull docker.io/internetsystemsconsortium/bind9:9.18
|
|
ExecStart=/etc/bind/run_bind_container.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |