mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 03:45:24 -05:00
332d7903f5
* .gitignore: add etc/guix-publish.conf and /etc/guix-publish.service. * etc/guix-publish.conf.in: New file. * etc/guix-publish.service.in: New file. * nix/local.mk (etc/guix-%.service, etc/guix-%.conf): Generalized former build-rules for by using patterns. (nodist_systemdservice_DATA): Add etc/guix-publish.service, update comment. (nodist_upstartjob_DATA): Add etc/guix-publish.conf, update comment. * doc/guix.texi (Invoking guix publish): Add description for enabling "guix publish" on host distros using the new files.
19 lines
544 B
SYSTEMD
19 lines
544 B
SYSTEMD
# This is a "service unit file" for the systemd init system to launch
|
|
# 'guix publish'. Drop it in /etc/systemd/system or similar to have
|
|
# 'guix publish' automatically started.
|
|
|
|
[Unit]
|
|
Description=Publish the GNU Guix store
|
|
|
|
[Service]
|
|
ExecStart=@bindir@/guix publish --user=nobody --port=8181
|
|
Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
|
|
RemainAfterExit=yes
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
|
|
# See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
|
|
TasksMax=1024
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|