Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon not start on Arch Linux #252

Open
MUETTO opened this issue Feb 3, 2023 · 1 comment
Open

Daemon not start on Arch Linux #252

MUETTO opened this issue Feb 3, 2023 · 1 comment

Comments

@MUETTO
Copy link

MUETTO commented Feb 3, 2023

[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; _Alloc = std::allocator; reference = char&; size_type = long unsigned int]: Assertion '__pos <= size()' failed.
/etc/logkeys-start.sh: line 2: 9492 Aborted (core dumped) logkeys --start
[lb@vm ~]$

[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)

@icaroerasmo
Copy link

icaroerasmo commented Aug 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants