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.

29 lines
615 B

  1. # systemd example unit file. Please adjust.
  2. [Unit]
  3. Description=ACME client daemon
  4. After=network.target
  5. [Service]
  6. User=acmed
  7. Group=acmed
  8. # Working directory
  9. WorkingDirectory=/etc/acmed
  10. # Starting, stopping, timeouts
  11. ExecStart=/usr/local/bin/acmed --foreground --pid-file /etc/acmed/acmed.pid --log-level debug --log-stderr
  12. TimeoutStartSec=3
  13. TimeoutStopSec=5
  14. Restart=on-failure
  15. KillSignal=SIGINT
  16. # Sandboxing, reduce privileges, only allow write access to working directory
  17. NoNewPrivileges=yes
  18. PrivateTmp=yes
  19. PrivateUsers=yes
  20. ProtectSystem=strict
  21. ReadWritePaths=/etc/acmed/
  22. [Install]
  23. WantedBy=multi-user.target