David Blume commited on 2021-05-25 11:52:47
Showing 1 changed files, with 14 additions and 0 deletions.
... | ... |
@@ -3,6 +3,20 @@ |
3 | 3 |
These are different approaches to how one might implement a daemon to |
4 | 4 |
repeatedly ping multiple hosts to see if the network is up. |
5 | 5 |
|
6 |
+## Aside: disown vs nohup |
|
7 |
+ |
|
8 |
+Once you have such a daemon, you could call it with nohup or disown it |
|
9 |
+after running it in the background. Here's a [good description of the subtle differences](https://unix.stackexchange.com/a/148698/282848). |
|
10 |
+ |
|
11 |
+### Using disown |
|
12 |
+ |
|
13 |
+ mydaemon.py & |
|
14 |
+ disown [jobid] |
|
15 |
+ |
|
16 |
+### Using nohup |
|
17 |
+ |
|
18 |
+ nohup mydaemon.py & |
|
19 |
+ |
|
6 | 20 |
## Single Threaded |
7 | 21 |
|
8 | 22 |
This is the most naive implementation. For each ping host, the main |
9 | 23 |