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