4fd01f
[Unit]
4fd01f
Description=Unbound Control Key And Certificate Generator
4fd01f
After=syslog.target 
4fd01f
Before=unbound.service
4fd01f
ConditionPathExists=!/etc/unbound/unbound_control.key
4fd01f
4fd01f
[Service]
4fd01f
Type=oneshot
4fd01f
Group=unbound
4fd01f
ExecStart=/usr/sbin/unbound-control-setup -d /etc/unbound/
4fd01f
ExecStart=/sbin/restorecon /etc/unbound/*
4fd01f
RemainAfterExit=yes
4fd01f
4fd01f
[Install]
4fd01f
WantedBy=multi-user.target