summaryrefslogtreecommitdiff
path: root/bin/bbackupd/Win32ServiceFunctions.cpp
Commit message (Collapse)AuthorAge
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Use the specified service name when installing and removing the service.Chris Wilson2007-10-17
| | | | | | | | Pass the service name on the service command line, and use it for event log messages. (merges [1856])
* Record the exit status of the daemon when running as a service, andChris Wilson2007-10-17
| | | | | | | | | | | | | | | | | | return it to Windows so that Windows doesn't tell the admin that "the service did not report an error" when it stopped unexpectedly. When failing to contact the SCM, report a textual error message as well as the error code. Make OurService() take a const char * instead of char *, so that we can pass it a std::string.c_str(). InstallService creates service using "-s" option instead of "--service", which no longer works once we use getopt() for option processing (to follow). (merges [1853])
* Don't initialise MemLeakFinder twice when running as a service.Chris Wilson2007-09-07
| | | | | | | Return a non-zero exit code if running as a service fails. (merges [1813])
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* * Operator precedence fix (refs #3)Chris Wilson2006-10-14
|
* * bin/bbackupd/Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | | | | - Improved diagnostic output if InstallService() fails - Ensure that InstallService() cleans up all resources - Check that the requested configuration file is accessible - Include the configuration file in the service parameters
* * bin/bbackupd/Win32ServiceFunctions.hChris Wilson2006-08-09
| | | | | | | | | | | | | | * bin/bbackupd/Win32ServiceFunctions.cpp - InstallService() and OurService() take the config file name as a parameter - InstallService() returns an integer status code like RemoveService() - OurService() sets the global static config file name to pass into the main thread later * bin/bbackupd/bbackupd.cpp - Call InstallService() and OurService() with the config file name as a parameter
* * Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | | - RemoveService() returns a status code, 0 for success, 1 for error - RemoveService() outputs better diagnostic messages on failure
* * bin/bbackupd/Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | | | | - Keep a static char pointer to hold onto the config file name to pass it to ServiceMain (over whose parameters we have no control). - ServiceMain passes the config file name as the parameter of the thread it creates.
* * bin/bbackupd/Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | - More cosmetic spacing fixes
* * Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | - Reindent ServiceMain function to match coding standards and rest of file
* * Win32ServiceFunctions.cppChris Wilson2006-08-09
| | | | | - Revert to trunk
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution
* Marged chris/win32/merge/07-win32-fixes at r210 to trunkMartin Ebourne2005-12-12