This used to work for me, but now I'm getting "Can't exec "service": No such file or directory at /usr/bin/needrestart line 1080, <STDIN> line 1." I'll guess this is a systemd vs. openrc (what I use) difference. Is this fixable, or does someone need to create a separate needrestart-openrc package? (openrc uses rc-service instead of service)
Search Criteria
Package Details: needrestart 3.8-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/needrestart.git (read-only, click to copy) |
---|---|
Package Base: | needrestart |
Description: | Restart daemons after library updates. |
Upstream URL: | https://github.com/liske/needrestart |
Licenses: | GPL-2.0-or-later |
Submitter: | t-8ch |
Maintainer: | t-8ch |
Last Packager: | blakkheim |
Votes: | 68 |
Popularity: | 2.00 |
First Submitted: | 2014-10-31 08:21 (UTC) |
Last Updated: | 2024-11-19 16:42 (UTC) |
Dependencies (7)
- perl-libintl-perl
- perl-module-find
- perl-module-scandeps
- perl-proc-processtable
- perl-sort-naturally
- perl-term-readkey
- iucode-tool (optional) – for outdated microcode detection
Required by (3)
- pacroller (optional)
- pacroller-dev-git (optional)
- pacroller-git (optional)
Sources (2)
ostroffjh commented on 2020-07-31 15:04 (UTC)
yochananmarqos commented on 2019-07-03 21:05 (UTC)
PSA: This needs a rebuild after the recent perl updates.
mr_nuub commented on 2018-12-06 23:11 (UTC) (edited on 2018-12-11 18:06 (UTC) by mr_nuub)
Hi! @t-8ch the PKGBUILD lacks some information in the package() block.
It should look like this to install the perl module NeedRestart.pm system-wide. Otherwise it is installed in the current users home directory, which makes sudo needrestart
impossible (sudo is needed eg for ineractive mode).
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make INSTALLDIRS=vendor DESTDIR="${pkgdir}" install
}
For everyone who wonders why there is an unset
in the PKGBUILD, please read https://wiki.archlinux.org/index.php/Perl_package_guidelines.
t-8ch commented on 2018-03-05 18:49 (UTC)
Hi @wuestengecko, unfortunately needrestart does currently not work with the microcode packaged in Arch, but only in Debian. Debian provides the different ucode images in a directory, while arch provides a single initrd image that contains it all. Support for the Arch way should probably added upstream.
The microcode, which is now checked by default, can't be checked so UNKNOWN is correct. I think we should keep the package as is.
You can work around this by specifying -k and -l explicitly to go back to the 2.x behaviour.
wuestengecko commented on 2018-03-04 01:24 (UTC)
v3.0 requires iucode-tool
to check for Intel microcode updates (AMD is currently unsupported). Note that the actual microcode is provided by the intel-ucode
package.
Without iucode-tool, on Intel machines you get the following error and the Nagios plugin mode always returns UNKNOWN:
which: no iucode_tool in (/usr/local/sbin:/usr/local/bin:/usr/bin)
(with your actual $PATH in parentheses, of course)
scott32 commented on 2018-02-28 16:38 (UTC)
Version 3.0 is out... just replace pkgver=2.10 with pkgver=3.0 in PKGBUILD
Pinned Comments
meadow commented on 2024-03-03 13:48 (UTC)
Maybe this can (easily?) solve the issue that -lts kernels are always detected as outdated
https://github.com/liske/needrestart/issues/281#issuecomment-1975120647