guix-install.sh: Support OpenRC.
authorMorgan Smith <Morgan.J.Smith@outlook.com>
Thu, 17 Sep 2020 11:03:09 +0000 (13:03 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Thu, 17 Sep 2020 12:10:42 +0000 (14:10 +0200)
commitcabac732deffafc796537658a6c33c6c4aec821e
tree98ec099c50b8b5dd1c6f682564fa239599c984ca
parentf72bafe32d539ddc4c53bc6ff5db04d3138ff818
guix-install.sh: Support OpenRC.

* etc/guix-install.sh (chk_init_sys): Detect OpenRC.
(sys_enable_guix_daemon): Install & enable the Guix daemon on such
systems.
* etc/openrc/guix-daemon.in: New file.
* nix/local.mk: Add a rule for it.
(openrcservicedir, nodist_openrcservice_DATA): New variables.
(CLEANFILES, EXTRA_DIST): Add them.
* .gitignore: Ignore etc/openrc/guix-daemon.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
.gitignore
etc/guix-install.sh
etc/openrc/guix-daemon.in [new file with mode: 0644]
nix/local.mk