git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@4 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
@@ -311,6 +311,13 @@ namespace winsw
if (s == null) ThrowNoSuchService();
s.StopService();
}
+ if (args[0] == "restart")
+ {
+ if (s == null) ThrowNoSuchService();
+ if(s.Started)
+ s.StopService();
+ s.StartService();
+ }
if (args[0] == "status")
{
if (s == null)