S
S
Slavka2016-07-24 11:11:58
linux
Slavka, 2016-07-24 11:11:58

Literature on demons?

Is there any suitable literature that would tell how to correctly write demons, and when it is necessary, and when can you do without them?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
none7, 2016-07-24
@none7

A daemon differs from a regular console application in that it refuses access to the console and becomes independent of the life and death of the ancestor process and the console. How would this sentence be extended to 600 pages?

D
Danil Biryukov-Romanov, 2016-07-24
@urtow

Why do you need literature?
If you need to provide some resource constantly (to answer requests) - write a demon. If you need to process something once, you don't need a demon.
How to write well:
One simple rule is to use resources wisely. Eat less memory, CPU, disk, network. Release resources when you don't need them.
And that's all.

M
MrSotariz, 2016-07-25
@MrSotariz

ls -l /etc/init.d/ | grep -E "skeleton|README"
-rw-r--r-- 1 root root 2427 Mar 13 2014 README
-rw-r--r-- 1 root root 4290 Mar 13 2014 skeleton
Examine the contents of these files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question