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