diff options
| author | Marius Bakke <mbakke@fastmail.com> | 2020-03-11 22:58:11 +0100 |
|---|---|---|
| committer | Marius Bakke <mbakke@fastmail.com> | 2020-03-11 22:58:11 +0100 |
| commit | 41c6e4f2b40f41cdbf4e8c7ade29845709f9cdf4 (patch) | |
| tree | f496dcc2b11819f691cfe6063c52894f2ca76823 /etc/guix-install.sh | |
| parent | 4510aeb91ce6267a14c9cead768869553b3a2279 (diff) | |
| parent | 58363ee50096fd02743ff6d62ee1125fc440625f (diff) | |
Merge branch 'master' into staging
Diffstat (limited to 'etc/guix-install.sh')
| -rwxr-xr-x | etc/guix-install.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh index bfd3842933..e7f4d2cd59 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -361,6 +361,17 @@ sys_enable_guix_daemon() systemctl enable guix-daemon; } && _msg "${PAS}enabled Guix daemon via systemd" ;; + sysv-init) + { mkdir -p /etc/init.d; + cp "${ROOT_HOME}/.config/guix/current/etc/init.d/guix-daemon" \ + /etc/init.d/guix-daemon; + chmod 775 /etc/init.d/guix-daemon; + + update-rc.d guix-daemon defaults && + update-rc.d guix-daemon enable && + service guix-daemon start; } && + _msg "${PAS}enabled Guix daemon via sysv" + ;; NA|*) _msg "${ERR}unsupported init system; run the daemon manually:" echo " ${ROOT_HOME}/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild" |
