kernc / kernc/logkeys

Logging routinely stops

Open
#200 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
834
Forks
254
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the stoppage with the supplied systemd unit and inspect the log file alongside the still-running process. Trace whether the failure is in the daemon, its logging path, or systemd supervision; done means identifying a reproducible cause and documenting or fixing the conditions that stop logging.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.