In what ways do daemons interact with the system?

10    15 Mar 2016 20:31 by u/NervousHorse

I'm supposed to program a daemon as a part of a Linux programming course, and I'm a bit lost since the course material (Advanced Linux Programming) doesn't specifically cover daemons. I found several guides on how to make a process a daemon, but I can't really find any info on what kind of system events daemons can react to and how. Could anyone suggest a source that focuses more on daemons, or even just a general summary with examples on what can be done with daemons and what sorts of tasks they're most suited for?

5 comments

2

Check out D-Bus. This is a great mechanism to have client applications register with the daemon (service) and tell it to do work without client caring how

1

It is similar like a Windows service. In Windows a service is an application that has no user interaction, so no GUI, no message box.

Linux Chapter 18 - Daemons: https://www.youtube.com/watch?v=BL-NUeRmogo

0

Yeah I know that, but what can it use as input and how?

2

I just set up a Tinc daemon last night. It's a program that tunnels network traffic. I don't think a daemon has any defined limits on the tires of processing and io it can do so long as it does it without interactive user input.