smeserver-base/root/usr/lib/systemd/system/dhparam-generator.service
Jean-Philippe Pialasse 8615e569eb * Sun Mar 16 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-31.sme
- handle dh params with template [SME: 12826]
 TODO timer and event
- foolproofing dummy.module
2025-03-17 22:55:51 -04:00

25 lines
688 B
Desktop File

[Unit]
Description=Diffie Hellman parameter generator
#TODO: add Requires= or Wants= to those:
Before=ftp.service
Before=dovecot.service
Before=qpsmtpd.service sqpsmtpd.service uqpsmtpd.service
Before=radiusd.service
[Service]
Type=oneshot
ExecStart=/etc/e-smith/events/actions/dhgenerator
# sqpsmtpd and uqpsmtpd use a symlink to /var/service/qpsmtpd/ssl
ExecStartPost=-/sbin/e-smith/expand-template /var/service/qpsmtpd/ssl/dhparam.pem
ExecStartPost=-/sbin/e-smith/expand-template /etc/dovecot/ssl/dhparam.pem
ExecStartPost=-/sbin/e-smith/expand-template /etc/raddb/certs/dh
PrivateTmp=true
ProtectSystem=no
ProtectHome=no
PrivateDevices=false
[Install]
WantedBy=sme-server.target