diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2020-01-28 18:38:58 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2020-03-11 02:45:49 +0100 |
commit | fe60ef998f537e0e71bbb3377d5886ad297821d0 (patch) | |
tree | 638fd8586cdba15263048b873f47b226a9511cde /etc | |
parent | 73fbe04107d38f4561636c74d28d7a4935cbb1ef (diff) | |
download | patches-fe60ef998f537e0e71bbb3377d5886ad297821d0.tar patches-fe60ef998f537e0e71bbb3377d5886ad297821d0.tar.gz |
guix-install.sh: Install SysV init script.
* etc/guix-install.sh (sys_enable_guix_daemon): Install SysV init script.
Diffstat (limited to 'etc')
-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" |