Please add them.
There is a systemd unit for kexec contributed by Dennis Schridde. You can find it in the user/systemd overlay, or at http://git.overlays.gentoo.org/gitweb/?p=user/systemd.git;a=blob;f=sys-apps/systemd-units/files/services-server/kexec-load_at.service;h=e75e59483dc28b9fe6714b2d7c5ceae6302a26d2;hb=HEAD Dennis also contributed a file for kexec to be installed into /etc/kernel/postinst.d/. It can be found at http://git.overlays.gentoo.org/gitweb/?p=user/systemd.git;a=blob;f=sys-apps/systemd-units/files/90_kexec;h=19a7b5c5f4c39c9bb4e62e16c80c3f70a218e8c4;hb=HEAD To inform users of what to do with it, the ebuild contains pkg_postinst() { elog "The file '${ROOT}etc/kernel/postinst.d/90_kexec' has been" elog "installed for you. If you use kexec, you may want to enable it by" elog "making it exectuable." } (CC'ing Dennis, as I have not tested this personally.)
(In reply to Henry Gebhardt from comment #1) > (CC'ing Dennis, as I have not tested this personally.) Still works like a charm for me. The systemd unit has to be seen in the context of the kernel postinst file (hence the %i in the unit) and me using dracut to generate the initramfs (thus the path to the image, which may be different for genkernel, while others might need none at all).
Before including I like to review the option to have the same functionallity as the old init script.
(In reply to Justin Lecher from comment #3) > Before including I like to review the option to have the same functionallity > as the old init script. Did you have time for that? :/
(In reply to Pacho Ramos from comment #4) > (In reply to Justin Lecher from comment #3) > > Before including I like to review the option to have the same functionallity > > as the old init script. > > Did you have time for that? :/ I have been offline, but I will fix that until monday together with some other serious init script things.
+*kexec-tools-2.0.4-r2 (21 Sep 2013) + + 21 Sep 2013; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.4-r2.ebuild, + kexec-tools-9999.ebuild, -files/kexec.conf-2.0.3, -files/kexec.init-2.0.3, + +files/kexec.init-2.0.4-r2, +files/kexec.conf-9999, +files/kexec.init-9999, + files/kexec.conf, -files/kexec.init, -files/kexec.init-ng, + +files/kexec.service: + Add support for systemd, #478072; Fix issues with openrc init scripts, + #481506; thanks BobbyK for the patches +
Thanks Justin :)