[Box Backup-dev] COMMIT r740 - box/chris/merge/bin/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Wed Aug 9 18:30:05 BST 2006
Author: chris
Date: 2006-08-09 17:29:59 +0000 (Wed, 09 Aug 2006)
New Revision: 740
Modified:
box/chris/merge/bin/bbackupd/bbackupd.cpp
Log:
* bbackupd.cpp
- Return the status code from InstallService() and RemoveService() as
exit code (0 on success, 1 on failure)
Modified: box/chris/merge/bin/bbackupd/bbackupd.cpp
===================================================================
--- box/chris/merge/bin/bbackupd/bbackupd.cpp 2006-08-09 17:27:46 UTC (rev 739)
+++ box/chris/merge/bin/bbackupd/bbackupd.cpp 2006-08-09 17:29:59 UTC (rev 740)
@@ -40,8 +40,7 @@
}
if(argc == 2 && ::strcmp(argv[1], "-r") == 0)
{
- RemoveService();
- return 0;
+ return RemoveService();
}
if((argc == 2 || argc == 3) && ::strcmp(argv[1], "-i") == 0)
{
@@ -50,8 +49,7 @@
{
config = argv[2];
}
- InstallService(config);
- return 0;
+ return InstallService(config);
}
bool runAsWin32Service = false;
More information about the Boxbackup-dev
mailing list