| | |
| | | import java.io.PrintStream; |
| | | |
| | | import org.opends.server.types.NullOutputStream; |
| | | import org.opends.server.util.SetupUtils; |
| | | |
| | | import static org.opends.server.messages.MessageHandler.getMessage; |
| | | import static org.opends.server.messages.ToolMessages.*; |
| | |
| | | } |
| | | else |
| | | { |
| | | String[] cmd = { |
| | | "net", |
| | | "stop", |
| | | serviceName |
| | | }; |
| | | String[] cmd; |
| | | if (SetupUtils.isVista()) |
| | | { |
| | | cmd= new String[] { |
| | | ConfigureWindowsService.getLauncherBinaryFullPath(), |
| | | ConfigureWindowsService.LAUNCHER_OPTION, |
| | | ConfigureWindowsService.getLauncherAdministratorBinaryFullPath(), |
| | | ConfigureWindowsService.LAUNCHER_OPTION, |
| | | "net", |
| | | "stop", |
| | | serviceName |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | cmd= new String[] { |
| | | "net", |
| | | "stop", |
| | | serviceName |
| | | }; |
| | | } |
| | | /* Check if is a running service */ |
| | | try |
| | | { |