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.

39 lines
1.0 KiB

  1. [Unit]
  2. Description=ACME client daemon
  3. After=network.target
  4. Documentation=man:acmed.toml(5) man:acmed(8) https://github.com/breard-r/acmed/wiki
  5. [Service]
  6. User=acmed
  7. Group=acmed
  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 --pid-file /run/acmed/acmed.pid --log-level trace --log-stderr
  13. ExecStart=/usr/bin/acmed --foreground --pid-file /run/acmed/acmed.pid --log-level info
  14. TimeoutStartSec=3
  15. TimeoutStopSec=5
  16. Restart=on-failure
  17. KillSignal=SIGINT
  18. # Sandboxing: reduce privileges on filesystem and kernel-space
  19. # restrict write access to acmed's directories with variable data
  20. NoNewPrivileges=yes
  21. PrivateDevices=yes
  22. PrivateTmp=yes
  23. PrivateUsers=yes
  24. ProtectClock=yes
  25. ProtectHostname=yes
  26. ProtectKernelTunables=yes
  27. ProtectKernelLogs=yes
  28. ProtectSystem=yes
  29. ReadWritePaths=/etc/acmed /var/lib/acmed
  30. RestrictRealtime=yes
  31. RestrictSUIDSGID=yes
  32. SystemCallFilter=@system-service
  33. [Install]
  34. WantedBy=multi-user.target