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

Logging routinely stops #200

Open
Concr3te opened this issue Jun 10, 2019 · 2 comments
Open

Logging routinely stops #200

Concr3te opened this issue Jun 10, 2019 · 2 comments

Comments

@Concr3te
Copy link

I am witnessing a strange bug where logkeys routinely stops logging.

This time round, I managed to spot logkeys not logging while it was supposed to be logging. In fact, from the log file, it looks like logkeys was logging just a few minutes ago but strangely stopped.

I have a systemd unit file which I use for starting and stopping logkeys. The file looks as below.

[Unit]
Description=Keylogger daemon

[Service]
Type=forking
GuessMainPID=yes
ExecStart=/usr/local/bin/logkeys --start 
ExecStop=/usr/local/bin/logkeys --kill
     
[Install]
WantedBy=multi-user.target

and logkeys does start logging but will routinely stop logging while the process is still running.

Any ideas where debugging this should start?

@MarAvFe
Copy link

MarAvFe commented Nov 14, 2019

A little late, but for the future:

What I managed to solve was to use cron. Just by adding my full command as:

$ crontab -e
...
#* * * * * cmd
@reboot /usr/local/bin/logkeys --start

It just started logging to /var/log/logkeys.log once the reboot happened.

@zar3bski
Copy link

zar3bski commented Apr 3, 2022

Nice hack, @MarAvFe . For non us keymaps, you'll need to precise --keymap, for it might not be properly detected during you cronjob

@reboot logkeys --start --output=/home/zar3bski/Téléchargements/keys.log --device=/dev/input/event4 --keymap /path/to/keymaps/fr.map

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

3 participants