guix-install.sh: Add the build users to the 'kvm' group.
[jackhill/guix/guix.git] / etc / guix-publish.service.in
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]
6 Description=Publish the GNU Guix store
7 Requires=guix-daemon.service
8 PartOf=guix-daemon.service
9 After=guix-daemon.service
10
11 [Service]
12 ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181
13 Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
14 RemainAfterExit=yes
15 StandardOutput=syslog
16 StandardError=syslog
17
18 # See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
19 TasksMax=1024
20
21 [Install]
22 WantedBy=multi-user.target