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
951 B

  1. [Unit]
  2. Description=ACME client daemon
  3. After=network.target
  4. [Service]
  5. User=acmed
  6. Group=acmed
  7. # Working directory (acmed home path)
  8. WorkingDirectory=/var/lib/acmed
  9. RuntimeDirectory=acmed
  10. # daemon handling: start, stop, timeouts
  11. #ExecStart=/usr/bin/acmed --foreground --pid-file /run/acmed/acmed.pid --log-level trace --log-stderr
  12. ExecStart=/usr/bin/acmed --foreground --pid-file /run/acmed/acmed.pid --log-level warn
  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. PrivateUsers=yes
  23. ProtectClock=yes
  24. ProtectHostname=yes
  25. ProtectKernelTunables=yes
  26. ProtectKernelLogs=yes
  27. ProtectSystem=strict
  28. ReadWritePaths=/etc/acmed /var/lib/acmed
  29. RestrictRealtime=yes
  30. RestrictSUIDSGID=yes
  31. SystemCallFilter=@system-service
  32. [Install]
  33. WantedBy=multi-user.target