mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Making Ctrl+C the default behaviour
also making the timeout customizable, plus documentation
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user