diff options
Diffstat (limited to 'server-tools/instance-manager/IMService.cpp')
-rw-r--r-- | server-tools/instance-manager/IMService.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-tools/instance-manager/IMService.cpp b/server-tools/instance-manager/IMService.cpp index b6195d15603..4e53fe15ef4 100644 --- a/server-tools/instance-manager/IMService.cpp +++ b/server-tools/instance-manager/IMService.cpp @@ -50,7 +50,7 @@ int HandleServiceOptions(Options options) else { log_info("Service failed to install\n"); - ret_val= -1; + ret_val= 1; } } else if (options.remove_service) @@ -62,10 +62,10 @@ int HandleServiceOptions(Options options) else { log_info("Service failed to remove\n"); - ret_val= -1; + ret_val= 1; } } else - return (int)winService.Init(); + ret_val= winService.Init() ? 0 : 1; return ret_val; } |