summaryrefslogtreecommitdiff
path: root/bin/bbstored/BackupStoreDaemon.cpp
Commit message (Collapse)AuthorAge
* Move reusable files from bin/bbstored to lib/bbstored.Chris Wilson2015-12-20
| | | | Break dependendency of test/bbackupd on individual files from other modules.
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we construct it, and it takes control of this object. This reduces the risk of: * accidentally reusing the same SocketStream for multiple Protocols (it happened to me in testbackupstore); * holding onto a reference to the SocketStream; * allowing a locally-scoped SocketStream to go out of scope and be released while still being referenced by a live Protocol.
* Fix crash in BackupStoreContext with no HousekeepingInterface pointer.Chris Wilson2014-02-27
| | | | | | Rename mrDaemon to mpHousekeeping and make it a pointer, so that it can officially be NULL, and don't crash if it is, and we fail to get a lock on the account.
* Revert "Get backup connection stats from BackupProtocolServer."Chris Wilson2014-02-09
| | | | | | | Until the groundwork is prepared by changing Protocol's use of IOStream to SocketStream. This reverts commit 78531354753f3ce9bb3ef1d906b2aeaac5b73d58.
* Get backup connection stats from BackupProtocolServer.Chris Wilson2014-02-09
| | | | One less reason to hang onto a Stream reference, that will go away soon.
* Add remote host and port to post-login login message, requested by Pete Jalajas.Chris Wilson2011-12-13
|
* Log the account name with connections, disconnections and statistics, ↵Chris Wilson2011-12-12
| | | | requested by Pete Jalajas.
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Log net traffic (in-out) in bbstored, as requested by Pete Jalajas.Chris Wilson2011-08-27
|
* Use logging tagger to identify clients during connections, bothChris Wilson2008-09-13
| | | | | in syslog and on the console.
* Make statistics back into a NOTICE level log again, as they're pretty Chris Wilson2008-08-22
| | | | | important and useful.
* Run housekeeping synchronously on all platforms if daemon is run in Chris Wilson2008-08-21
| | | | | | | single process mode (-D), not just on Windows. Add a housekeeping interface to allow Boxi to run housekeeping.
* Rename BackupContext to BackupStoreContext.Chris Wilson2008-08-07
| | | | | Add a TestHook to help test weird server behaviour such as crashes.
* Add "-h" and "/?" options to display usage in Daemon.Chris Wilson2007-10-17
| | | | | | | | | Extend usage info with service commands in BackupDaemon. Disable useless -D, -V and -k options on Windows. (merges 1855])
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692])
* Remove newlines from syslog() messages. (refs #3, merges [1447])Chris Wilson2007-03-24
|
* Run housekeeping in idle time on Win32 (refs #3)Chris Wilson2007-03-08
|
* Catch any exceptions while handling a connection and report to user Chris Wilson2006-11-26
| | | | | | rather than terminating. Useful for non-forking servers like bbstored on Windows. (refs #3)
* Don't try to write to the interprocess socket if it's not open (refs #3)Chris Wilson2006-11-13
|
* Properly revert [1096] (refs #3)Chris Wilson2006-11-13
|
* Revert [1096] as it causes infinite loops if the listening socket Chris Wilson2006-11-13
| | | | | can't be opened (refs #3)
* Compile fixChris Wilson2006-11-06
|
* Catch exceptions from BackupStoreDaemon::Run and log them without killingChris Wilson2006-10-18
| | | | | the server process, on platforms where forking is disabled (Win32). (refs #3)
* Reinstate #ifdefs on Win32. (refs #3)Chris Wilson2006-10-18
|
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - Cast off_t to long long, in case they differ in size (e.g. Win32)
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - Only include <syslog.h> if we have it
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - 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).
* Bandwidth usage logging patch from Pascal Lalonde <plalonde@overnet.qc.ca>, ↵Ben Summers2006-02-13
| | | | with minor change to exception handling
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14