2011-09-14 20:20:56 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Unbound Control Key And Certificate Generator
|
|
|
|
After=syslog.target
|
|
|
|
Before=unbound.service
|
2018-08-15 02:16:28 +00:00
|
|
|
ConditionPathExists=|!/etc/unbound/unbound_control.pem
|
|
|
|
ConditionPathExists=|!/etc/unbound/unbound_control.key
|
|
|
|
ConditionPathExists=|!/etc/unbound/unbound_server.pem
|
|
|
|
ConditionPathExists=|!/etc/unbound/unbound_server.key
|
2018-08-14 01:34:16 +00:00
|
|
|
PartOf=unbound.service
|
2011-09-14 20:20:56 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Group=unbound
|
|
|
|
ExecStart=/usr/sbin/unbound-control-setup -d /etc/unbound/
|
|
|
|
ExecStart=/sbin/restorecon /etc/unbound/*
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|