unbound/SOURCES/unbound-keygen.service

19 lines
527 B
SYSTEMD
Raw Normal View History

2019-08-01 20:44:27 +00:00
[Unit]
Description=Unbound Control Key And Certificate Generator
After=syslog.target
Before=unbound.service
2022-09-27 12:20:34 +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
PartOf=unbound.service
2019-08-01 20:44:27 +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