Done in collaboration with Nuno Machado
Simple UNIX daemon for System-V based systems (using the double fork() technique).
- Handles 3 simultaneous clients sending messages to register on the logfile;
- "quit" command to close the daemon;
- Lock and PID file management.
- Install required dependencies
sudo apt-get install c++ make- Clone this repository and navigate to its folder
git clone https://github.com/Kuninoto/42_matt-daemon matt-daemon && cd matt-daemon- Build and run (requires root privileges to create folders and files under
/var/logand/var/lock)
sudo make runCreating a daemon in Linux
How to create a daemon in Linux
What is a daemon - definition
daemon man
setsid() man
What is the reason for performing a double fork() when creating a daemon
Double fork() - why?
Why fork() twice
This project is licensed under the GPL3 license - see the LICENSE file for more details.
Made by Nuno Carvalho (Kuninoto) | nnuno-ca@student.42porto.com
