guix-publish.service.in 811 B

12345678910111213141516171819202122232425
  1. # This is a "service unit file" for the systemd init system to launch
  2. # 'guix publish'. Drop it in /etc/systemd/system or similar to have
  3. # 'guix publish' automatically started.
  4. [Unit]
  5. Description=Publish the GNU Guix store
  6. Requires=guix-daemon.service
  7. PartOf=guix-daemon.service
  8. After=guix-daemon.service
  9. [Service]
  10. ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181
  11. Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
  12. StandardOutput=syslog
  13. StandardError=syslog
  14. # Despite the name, this is rate-limited: a broken daemon will eventually fail.
  15. Restart=always
  16. # See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
  17. TasksMax=1024
  18. [Install]
  19. WantedBy=multi-user.target