check Service. first
This commit is contained in:
parent
ff39a06bec
commit
d95ff6f7b8
@ -420,6 +420,14 @@ public class Service extends Win32 {
|
||||
System.out.println(service.getStatusString());
|
||||
return;
|
||||
}
|
||||
else if ((args.length == 1) && (args[0].startsWith("Service."))) {
|
||||
Sigar sigar = new Sigar();
|
||||
try {
|
||||
services = Service.getServiceNames(sigar, args[0]);
|
||||
} finally {
|
||||
sigar.close();
|
||||
}
|
||||
}
|
||||
else if ((args.length == 1) && (args[0].endsWith(EXE_EXT))) {
|
||||
services = getServiceConfigs(args[0]);
|
||||
for (int i=0; i<services.size(); i++) {
|
||||
@ -429,14 +437,6 @@ public class Service extends Win32 {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if ((args.length == 1) && (args[0].startsWith("Service."))) {
|
||||
Sigar sigar = new Sigar();
|
||||
try {
|
||||
services = Service.getServiceNames(sigar, args[0]);
|
||||
} finally {
|
||||
sigar.close();
|
||||
}
|
||||
}
|
||||
else {
|
||||
services = Arrays.asList(args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user