2015-07-15 11:13:16 -04:00
|
|
|
|
# This is a "service unit file" for the systemd init system to launch
|
|
|
|
|
# 'guix-daemon'. Drop it in /etc/systemd/system or similar to have
|
|
|
|
|
# 'guix-daemon' automatically started.
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Build daemon for GNU Guix
|
|
|
|
|
|
|
|
|
|
[Service]
|
2021-07-05 16:44:29 -04:00
|
|
|
|
ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \
|
2024-05-31 04:54:18 -04:00
|
|
|
|
--build-users-group=guixbuild --discover=no \
|
|
|
|
|
--substitute-urls='@GUIX_SUBSTITUTE_URLS@'
|
2019-06-03 14:42:16 -04:00
|
|
|
|
Environment='GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
|
2023-07-20 15:13:55 -04:00
|
|
|
|
StandardOutput=journal
|
|
|
|
|
StandardError=journal
|
2015-07-15 11:13:16 -04:00
|
|
|
|
|
2022-10-22 20:00:11 -04:00
|
|
|
|
# Work around a nasty systemd ‘feature’ that kills the entire process tree
|
|
|
|
|
# (including the daemon!) if any child, such as cc1plus, runs out of memory.
|
|
|
|
|
OOMPolicy=continue
|
|
|
|
|
|
2022-10-22 20:00:02 -04:00
|
|
|
|
# Despite the name, this is rate-limited: a broken daemon will eventually fail.
|
|
|
|
|
Restart=always
|
|
|
|
|
|
2016-04-25 08:49:58 -04:00
|
|
|
|
# See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
|
2017-04-22 13:33:03 -04:00
|
|
|
|
# Some package builds (for example, go@1.8.1) may require even more than
|
|
|
|
|
# 1024 tasks.
|
|
|
|
|
TasksMax=8192
|
2016-04-25 08:49:58 -04:00
|
|
|
|
|
2015-07-15 11:13:16 -04:00
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|