guix-daemon.service.in 1012 B

1234567891011121314151617181920212223242526272829
  1. # This is a "service unit file" for the systemd init system to launch
  2. # 'guix-daemon'. Drop it in /etc/systemd/system or similar to have
  3. # 'guix-daemon' automatically started.
  4. [Unit]
  5. Description=Build daemon for GNU Guix
  6. [Service]
  7. ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \
  8. --build-users-group=guixbuild --discover=no
  9. Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
  10. StandardOutput=syslog
  11. StandardError=syslog
  12. # Work around a nasty systemd ‘feature’ that kills the entire process tree
  13. # (including the daemon!) if any child, such as cc1plus, runs out of memory.
  14. OOMPolicy=continue
  15. # Despite the name, this is rate-limited: a broken daemon will eventually fail.
  16. Restart=always
  17. # See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
  18. # Some package builds (for example, go@1.8.1) may require even more than
  19. # 1024 tasks.
  20. TasksMax=8192
  21. [Install]
  22. WantedBy=multi-user.target