You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
305 B
Python
13 lines
305 B
Python
#!/usr/bin/python3
|
|
|
|
import os
|
|
import logging as log
|
|
import sys
|
|
from socrate import conf
|
|
|
|
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
|
|
|
conf.jinja("/unbound.conf", os.environ, "/etc/unbound/unbound.conf")
|
|
|
|
os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
|