summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceBox/Service.cpp')
-rw-r--r--cpp/src/IceBox/Service.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceBox/Service.cpp b/cpp/src/IceBox/Service.cpp
index 2cfb70ce1ea..8c44fe7f37b 100644
--- a/cpp/src/IceBox/Service.cpp
+++ b/cpp/src/IceBox/Service.cpp
@@ -27,7 +27,7 @@ public:
protected:
- virtual bool start(int, char*[]);
+ virtual bool start(int, char*[], int&);
virtual bool stop();
private:
@@ -43,7 +43,7 @@ IceBox::IceBoxService::IceBoxService()
}
bool
-IceBox::IceBoxService::start(int argc, char* argv[])
+IceBox::IceBoxService::start(int argc, char* argv[], int& status)
{
// Run through the command line arguments removing all the service
// properties.
@@ -84,11 +84,13 @@ IceBox::IceBoxService::start(int argc, char* argv[])
if(opts.isSet("help"))
{
usage(argv[0]);
+ status = EXIT_SUCCESS;
return false;
}
if(opts.isSet("version"))
{
print(ICE_STRING_VERSION);
+ status = EXIT_SUCCESS;
return false;
}