Task #1585
closed
launchd & upstart: Restart NFD when nrd crashes
Added by Alex Afanasyev over 10 years ago.
Updated almost 10 years ago.
Description
Both launchd and upstart will monitor lifetime and restart nfd and nrd processes if each of them crash.
However, we also should restart nfd process when nrd crashes.
- Target version changed from v0.2 to v0.3
- Subject changed from (OSX/launchd and Ubuntu/upstart) Restart NFD when nrd crashes to launchd & upstart: Restart NFD when nrd crashes
- Description updated (diff)
Instead of fiddling with scripts, this can be achieved with syscalls:
pid_t nfd = fork();
if (nfd == 0) {
execve("nfd");
}
pid_t nrd = fork();
if (nrd == 0) {
execve("nrd");
}
wait(); // wait for either NFD or NRD to die
kill(nfd);
kill(nrd);
- Assignee set to Alex Afanasyev
- Priority changed from Normal to Low
- Start date deleted (
05/09/2014)
- Status changed from New to Abandoned
No longer relevant, given the we are combining nfd and nrd under the same process (#2489).
Also available in: Atom
PDF