monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Updated Issue 162 - monotone does not signal server sta


From: code
Subject: [Monotone-devel] Updated Issue 162 - monotone does not signal server startup failure (monotone)
Date: Mon, 11 Apr 2011 05:26:15 +0200 (CEST)

Hello,

The following issue has been updated:

162 - monotone does not signal server startup failure
Project: monotone
Status: New
Reported by: Francis Russell
URL: https://code.monotone.ca/p/monotone/issues/162/
Labels:
 Type:Defect
 Priority:Medium

Comments (last first):

# By Francis Russell, Apr 11, 2011:

Actually, it doesn't look like Debian's start-stop-daemon will complain about a 
lack of a PID file either. Presumably it only uses it to stop the daemon.

# By Francis Russell, Apr 11, 2011:

I've observed this issue when debugging with Debian, but I believe it applies 
to all Unix-like distributions. When starting the monotone server, there needs 
to be a way to signal this to the startup script.

The preferred way is (apparently) that the server process does its own forking 
of the child, and the started process terminates with an exit code that 
signifies if the daemon was started successfully. 

Alternatively, if the demon process does not fork. The process that starts to 
daemon will need to take responsibility for the backgrounding, and a failure to 
start can be detected by the lack of a pid-file.

As far as I can tell, monotone does not support backgrounding for "mtn serve", 
and creates a pid-file even when the server fails to start properly.

Having mtn serve return an exit code when it can't start isn't helpful since 
the startup script should only block for as long as is needed to know if the 
daemon has started correctly.



--
Issue: https://code.monotone.ca/p/monotone/issues/162/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]