dad965
[Unit]
dad965
Description=Unbound Control Key And Certificate Generator
dad965
After=syslog.target 
dad965
Before=unbound.service
601e9c
ConditionPathExists=|!/etc/unbound/unbound_control.pem
601e9c
ConditionPathExists=|!/etc/unbound/unbound_control.key
601e9c
ConditionPathExists=|!/etc/unbound/unbound_server.pem
601e9c
ConditionPathExists=|!/etc/unbound/unbound_server.key
601e9c
PartOf=unbound.service
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
dad965
[Install]
dad965
WantedBy=multi-user.target