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