in Education by
I'm always wondering who should do it. In Ruby, we have the Daemons library which allows Ruby scripts to daemonize themselves. And then, looking at God (a process monitoring tool, similar to monit) page, I see that God can daemonize processes. Any definitive answer out there? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You probably cannot get a definitive answer, as we generally end up with both: the process has the ability to daemonize itself, and the process monitor has the ability to daemonize its children. Personally I prefer to have the process monitor or script do it, for a few reasons: 1. if the process monitor wishes to closely follow its children to restart them if they die, it can choose not to daemonize them. A SIGCHLD will be delivered to the monitor when one of its child processes exits. In embedded systems we do this a lot. 2. Typically when daemonizing, you also set the euid and egid. I prefer not to encode into every child process a knowledge of system-level policy like uids to use. 3. It allows re-use of the same application as either a command line tool or a daemon (I freely admit that this rarely happens in practice).

Related questions

0 votes
    I'm always wondering who should do it. In Ruby, we have the Daemons library which allows Ruby scripts to ... , JavaScript questions and solutions, JavaScript mcq Test , Interview...
asked Mar 15, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what is daemon in Hadoop? Select the correct answer from above options...
asked Jan 9, 2022 in Education by JackTerrance
0 votes
    Only one Indian has so far been the President of the UN General Assembly. Who is that person? When and at which session? Please answer the above question....
asked Aug 10, 2022 in Education by JackTerrance
0 votes
    Who should be responsible for test automation? Developers or the QA?...
asked Jul 10, 2021 in Technology by JackTerrance
0 votes
    Which key helps to step out of the caller of currently executed method? (a) F3 (b) F5 (c) F7 (d) ... Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which key helps to step out of the caller of currently executed method? (a) F3 (b) F5 (c) F7 ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Can a function return multiple values to the caller using return reserved word in C?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    I am using exit(), quit(), os._exit(), sys.exit() to stop script execution, and I am confused which ... use to stop script execution? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    Who Should Perform the Smoke Test?...
asked Oct 17, 2020 in Technology by JackTerrance
0 votes
    Which of the following is correct Content-type header that a server side script should send for SSE in HTML5? A - Content- ... Content-Type: text/data-stream D - None of the above....
asked Dec 2, 2020 in Technology by JackTerrance
0 votes
    Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a ... O & Applets of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Unlike writing out a table or CSV file, dump() and dput() preserve the ______ so that another user ... Operations of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    A natural number is chosen at random from among the first 300. What Is the probability that the number so chosen is ... by 3 or 5. Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    A natural number is chosen at random from amongst first 500. What is the probability that the number so chosen is divisible by 3 or 5? Select the correct answer from above options...
asked Nov 22, 2021 in Education by JackTerrance
0 votes
    In a family having three children, there may be no girl, one girl, two girls or three girls. So, the ... correct? Justify your answer. Select the correct answer from above options...
asked Nov 21, 2021 in Education by JackTerrance
...