Skip to content

A daemon that reads the messages it receives through tcp connections and writes them to a log file.

Notifications You must be signed in to change notification settings

trixky/log_daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

matt_daemon

A daemon that reads the messages it receives through tcp connections and writes them to a log file.

  • Only one daemon instance can run at a time using a file lock system.
  • Only 3 clients can connect simultaneously to the daemon.
  • The daemon listen to the port 4242.

Usage

make
sudo ./build/matt_daemon
ps aux | grep matt_daemon
nc localhost 4242
test
quit

ps aux | grep matt_daemon
cat /var/log/matt_daemon/matt_daemon.log

The program will have to run only with the root rights.

About

A daemon that reads the messages it receives through tcp connections and writes them to a log file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages