Making Ctrl+C the default behaviour

also making the timeout customizable, plus documentation
This commit is contained in:
Kohsuke Kawaguchi
2014-01-08 21:27:53 -08:00
parent 1ed045b817
commit ae1bc43cff
4 changed files with 33 additions and 34 deletions

View File

@@ -562,14 +562,14 @@ namespace winsw
}
/// <summary>
/// True if the service can interact with the desktop.
/// Time to wait for the service to gracefully shutdown before we forcibly kill it
/// </summary>
public bool SendSIGINT
{
get
{
return dom.SelectSingleNode("//sendsigint") != null;
}
}
public TimeSpan StopTimeout
{
get
{
return SingleTimeSpanElement(dom, "stoptimeout", TimeSpan.FromSeconds(15));
}
}
}
}