You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1009 B

  1. [Unit]
  2. Description=ACME client daemon
  3. After=network.target
  4. ConditionPathExists=/etc/acmed/acmed.toml
  5. Documentation=man:acmed.toml(5) man:acmed(8) https://github.com/breard-r/acmed/wiki
  6. [Service]
  7. User=%i
  8. # Working directory (acmed home path)
  9. WorkingDirectory=/var/lib/acmed
  10. RuntimeDirectory=acmed
  11. # daemon handling: start, stop, timeouts
  12. ExecStart=/usr/bin/acmed --foreground --config /etc/acmed/acmed.toml --pid-file /run/acmed/acmed.pid --log-syslog --log-level info
  13. TimeoutStartSec=3
  14. TimeoutStopSec=5
  15. Restart=on-failure
  16. KillSignal=SIGINT
  17. # Sandboxing: reduce privileges on filesystem and kernel-space
  18. # restrict write access to acmed's directories with variable data
  19. NoNewPrivileges=yes
  20. PrivateDevices=yes
  21. PrivateTmp=yes
  22. ProtectClock=yes
  23. ProtectHostname=yes
  24. ProtectKernelTunables=yes
  25. ProtectKernelModules=yes
  26. ProtectKernelLogs=yes
  27. ProtectSystem=yes
  28. ReadWritePaths=/etc/acmed /var/lib/acmed
  29. RestrictRealtime=yes
  30. RestrictSUIDSGID=yes
  31. SystemCallFilter=@system-service
  32. [Install]
  33. WantedBy=multi-user.target