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