2022-10-08 15:55:40 +02:00
#!/usr/bin/env python3
2018-10-23 15:07:49 +03:00
import os
2019-01-08 00:38:06 +02:00
import logging as log
import sys
2022-12-08 12:46:31 +01:00
from socrate import conf , system
2019-01-08 00:38:06 +02:00
2022-12-08 12:46:31 +01:00
system . set_env ( )
2019-01-08 00:38:06 +02:00
2019-07-25 10:33:57 +02:00
conf . jinja ( " /unbound.conf " , os . environ , " /etc/unbound/unbound.conf " )
2018-10-23 15:07:49 +03:00
2023-02-16 01:31:16 +00:00
os . execv ( " /usr/sbin/unbound " , [ " unbound " , " -c " , " /etc/unbound/unbound.conf " ] )
2023-06-25 18:40:16 +02:00
print ( ' Unbound has terminated. If the container keeps restarting, check the internet connectivity of other containers using for instance " docker compose exec front ping example.com " ' )