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
|
|
|
|
2019-01-08 05:16:05 +02:00
|
|
|
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
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
|
|
|
|
|
|
|
os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
|