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