mirror of https://github.com/winsw/winsw
added restart support
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@4 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308faremotes/git-svn
parent
0f0d0fd0ff
commit
3d280921fd
7
Main.cs
7
Main.cs
|
@ -311,6 +311,13 @@ namespace winsw
|
||||||
if (s == null) ThrowNoSuchService();
|
if (s == null) ThrowNoSuchService();
|
||||||
s.StopService();
|
s.StopService();
|
||||||
}
|
}
|
||||||
|
if (args[0] == "restart")
|
||||||
|
{
|
||||||
|
if (s == null) ThrowNoSuchService();
|
||||||
|
if(s.Started)
|
||||||
|
s.StopService();
|
||||||
|
s.StartService();
|
||||||
|
}
|
||||||
if (args[0] == "status")
|
if (args[0] == "status")
|
||||||
{
|
{
|
||||||
if (s == null)
|
if (s == null)
|
||||||
|
|
Loading…
Reference in New Issue