https://github.com/nullswan/matt-daemon
Code a daemon
https://github.com/nullswan/matt-daemon
Last synced: about 1 month ago
JSON representation
Code a daemon
- Host: GitHub
- URL: https://github.com/nullswan/matt-daemon
- Owner: nullswan
- Created: 2022-03-13T19:31:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-02T20:24:54.000Z (about 4 years ago)
- Last Synced: 2025-02-26T16:26:12.062Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 2.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# matt-daemon
@42School Project
Code a daemon
**Note:** 125/100
[](https://github.com/c3b5aw/matt-daemon/actions/workflows/build.yml)
[](https://github.com/c3b5aw/matt-daemon/actions/workflows/lint.yml)
## Author
- [@c3b5aw](https://www.github.com/c3b5aw)
## Features - from subject
- [x] Require root rights
- [x] Daemonize
- [x] Listen on port 4242
- [x] Tintin_reporter for journalization
- [x] Log to /var/log/matt-daemon.log
- [x] [BONUS] Report system using archive
- [x] Only one instance of the daemon is allowed to run
- [x] matt_daemon.lock in /var/lock
- [x] Error message on matt_daemon.lock file when attempting to start second daemon
- [x] when matt_daemon stops, remove matt_daemon.lock
- [x] close with quit command
- [x] any other input must be logged
- [x] max 3 clients at the same time
- [x] when matt_daemon receive a signal, it must be logged