From 820ef6dab674c2878d72edc8ea21e7250b1b5aec Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 24 May 2016 12:55:50 -0500 Subject: supervise-daemon: clarify documentation about configuring daemon not to fork --- supervise-daemon-guide.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/supervise-daemon-guide.md b/supervise-daemon-guide.md index 7dae0e65..4ac73653 100644 --- a/supervise-daemon-guide.md +++ b/supervise-daemon-guide.md @@ -4,6 +4,8 @@ Beginning with OpenRC-0.21 we have our own daemon supervisor, supervise-daemon., which can start a daemon and restart it if it terminates unexpectedly. +The following is a brief guide on using this capability. + ## Use Default start, stop and status functions If you write your own start, stop and status functions in your service @@ -16,8 +18,10 @@ Any deamon that you would like to have monitored by supervise-daemon must not fork. Instead, it must stay in the foreground. If the daemon itself forks, the supervisor will be unable to monitor it. -If the daemon has an option to instruct it not to fork, you should add this -to the command_args_foreground variable listed below. +If the daemon can be configured to not fork, this should be done in the +daemon's configuration file, or by adding a command line option that +instructs it not to fork to the command_args_foreground variable shown +below. ## Variable Settings -- cgit v1.2.3