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
6 years ago
|
#!/usr/bin/python3
|
||
6 years ago
|
|
||
|
import os
|
||
6 years ago
|
import logging as log
|
||
|
import sys
|
||
5 years ago
|
from socrate import conf
|
||
6 years ago
|
|
||
6 years ago
|
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
||
6 years ago
|
|
||
5 years ago
|
conf.jinja("/unbound.conf", os.environ, "/etc/unbound/unbound.conf")
|
||
6 years ago
|
|
||
|
os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
|