8ba890
[Unit]
8ba890
Description=Unbound Control Key And Certificate Generator
8ba890
After=syslog.target 
8ba890
Before=unbound.service
7d43c4
ConditionPathExists=|!/etc/unbound/unbound_control.pem
7d43c4
ConditionPathExists=|!/etc/unbound/unbound_control.key
7d43c4
ConditionPathExists=|!/etc/unbound/unbound_server.pem
7d43c4
ConditionPathExists=|!/etc/unbound/unbound_server.key
7d43c4
PartOf=unbound.service
8ba890
8ba890
[Service]
8ba890
Type=oneshot
8ba890
Group=unbound
8ba890
ExecStart=/usr/sbin/unbound-control-setup -d /etc/unbound/
8ba890
ExecStart=/sbin/restorecon /etc/unbound/*
8ba890
8ba890
[Install]
8ba890
WantedBy=multi-user.target