|
Message-ID: <015d01d72410$ab3d0aa0$01b71fe0$@gmail.com>
Date: Sun, 28 Mar 2021 22:26:43 +0200
From: <m.bryn1u@...il.com>
To: <lkrg-users@...ts.openwall.com>
Subject: lkrg.service not found but exists and is well installed by make install
Hey gusy,
This is the first time when I see that weird kind of problem. I simply
installed lkrd without any problems but service lkrd "dosen't" which is not
tree.
[root@...ton lkrg]# make install
make -C /lib/modules/5.11.10/build M=/root/lkrg modules_install
make[1]: Entering directory '/usr/src/kernels/5.11.10'
INSTALL /root/lkrg/p_lkrg.ko
DEPMOD 5.11.10
make[1]: Leaving directory '/usr/src/kernels/5.11.10'
depmod -a
/root/lkrg/scripts/bootup/lkrg-bootup.sh install
[*] Executing LKRG's bootup installation script
[+] Systemd detected
Installing lkrg.service file under /etc/systemd/system folder
Enabling lkrg.service on bootup
Failed to enable unit: Unit file lkrg.service does not exist.
To start lkrg.service please use: systemctl start lkrg
[+] Done!
[root@...ton lkrg]# systemctl start lkrg
Failed to start lkrg.service: Unit lkrg.service not found.
[root@...ton lkrg]# systemctl status lkrg
Unit lkrg.service could not be found.
[root@...ton lkrg]# systemctl list-units | grep -i lkrg
[root@...ton lkrg]# systemctl list-unit-files | grep -i lkrg
lkrg.service bad
[root@...ton lkrg]# ls /etc/systemd/system/
basic.target.wants
dbus-org.freedesktop.nm-dispatcher.service getty.target.wants
multi-user.target.wants sockets.target.wants syslog.service
dbus-org.fedoraproject.FirewallD1.service default.target
lkrg.service network-online.target.wants sysinit.target.wants
timers.target.wants
[root@...ton lkrg]# ls /etc/systemd/system/lkrg.service
/etc/systemd/system/lkrg.service
[root@...ton lkrg]# cat /etc/systemd/system/lkrg.service
##
# Systemd service for LKRG (main branch)
#
# Author:
# - Adam 'pi3' Zabrocki (http://pi3.com.pl)
##
[Unit]
Description=Linux Kernel Runtime Guard
DefaultDependencies=no
After=systemd-modules-load.service
Before=systemd-sysctl.service
Before=sysinit.target shutdown.target
Conflicts=shutdown.target
ConditionKernelCommandLine=!nolkrg
[Service]
Type=oneshot
ExecStart=/sbin/modprobe -v p_lkrg
ExecStop=/sbin/modprobe -v -r p_lkrg
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target
[root@...ton lkrg]#
When I run manually /sbin/modprobe -v p_lkrg, works well. I don't get whats
wrong.
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.