projects/guix·blob master · refs

24 lines · 813 B

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
5[Unit]
6Description=Publish the GNU Guix store
7Requires=guix-daemon.service
8PartOf=guix-daemon.service
9After=guix-daemon.service
10
11[Service]
12ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181
13Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
14StandardOutput=journal
15StandardError=journal
16
17# Despite the name, this is rate-limited: a broken daemon will eventually fail.
18Restart=always
19
20# See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
21TasksMax=1024
22
23[Install]
24WantedBy=multi-user.target