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