logkeys
logkeys copied to clipboard
Daemon not start on Arch Linux
[lb@vm ~]$ uname -a Linux vm 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux [lb@vm ~]$
[lb@vm ~]$ llk
/usr/include/c++/12.2.1/bits/basic_string.h:1221: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT = char; _Traits = std::char_traits
[lb@vm ~]$ systemctl status logkeys.service × logkeys.service - Keylogger daemon Loaded: loaded (/usr/lib/systemd/system/logkeys.service; disabled; preset: disabled) Active: failed (Result: core-dump) since Fri 2023-02-03 23:02:20 CET; 20s ago Process: 9605 ExecStart=/usr/bin/logkeys --start $LOGKEYS_PARAMS (code=dumped, signal=ABRT) CPU: 7ms
Feb 03 23:02:20 vm systemd[1]: Starting Keylogger daemon... Feb 03 23:02:20 vm logkeys[9605]: /usr/include/c++/12.2.1/bits/basic_string.h:1221: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT > Feb 03 23:02:20 vm systemd[1]: logkeys.service: Control process exited, code=dumped, status=6/ABRT Feb 03 23:02:20 vm systemd[1]: logkeys.service: Failed with result 'core-dump'. Feb 03 23:02:20 vm systemd[1]: Failed to start Keylogger daemon.
[lb@vm ~]$ journalctl -xeu logkeys.service Feb 03 23:02:20 vm systemd[1]: Starting Keylogger daemon... Subject: A start job for unit logkeys.service has begun execution Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit logkeys.service has begun execution.
The job identifier is 1759. Feb 03 23:02:20 vm logkeys[9605]: /usr/include/c++/12.2.1/bits/basic_string.h:1221: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT > Feb 03 23:02:20 vm systemd[1]: logkeys.service: Control process exited, code=dumped, status=6/ABRT Subject: Unit process exited Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
An ExecStart= process belonging to unit logkeys.service has exited.
The process' exit code is 'dumped' and its exit status is 6. Feb 03 23:02:20 vm systemd[1]: logkeys.service: Failed with result 'core-dump'. Subject: Unit failed Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
The unit logkeys.service has entered the 'failed' state with result 'core-dump'. Feb 03 23:02:20 vm systemd[1]: Failed to start Keylogger daemon. Subject: A start job for unit logkeys.service has failed Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit logkeys.service has finished with a failure.
The job identifier is 1759 and the job result is failed. lines 1-31/31 (END)
I was able to make it run as a daemon following this guide: https://www.vivaolinux.com.br/dica/rclocal-no-Arch-Linux
It's in portuguese. Try to translate it using google or something else. In summary what it does is activate local.rc script and you can put logkeys startup comand there.