mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
guix-install.sh: Install SysV init script.
* etc/guix-install.sh (sys_enable_guix_daemon): Install SysV init script.
This commit is contained in:
parent
73fbe04107
commit
fe60ef998f
1 changed files with 11 additions and 0 deletions
|
@ -361,6 +361,17 @@ sys_enable_guix_daemon()
|
||||||
systemctl enable guix-daemon; } &&
|
systemctl enable guix-daemon; } &&
|
||||||
_msg "${PAS}enabled Guix daemon via systemd"
|
_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|*)
|
NA|*)
|
||||||
_msg "${ERR}unsupported init system; run the daemon manually:"
|
_msg "${ERR}unsupported init system; run the daemon manually:"
|
||||||
echo " ${ROOT_HOME}/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild"
|
echo " ${ROOT_HOME}/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild"
|
||||||
|
|
Loading…
Reference in a new issue