summaryrefslogtreecommitdiff
path: root/lib/server/Daemon.cpp
Commit message (Collapse)AuthorAge
* New upstream version 0.13~~git20200326.g8e8b63cReinhard Tartler2020-05-10
|
* New upstream version 0.13~~git20190527.g039c4a1Reinhard Tartler2019-05-28
|
* Update platform feature detection to work with CMake.Chris Wilson2016-09-03
| | | | | | | Rewrite some macros in forms that can be parsed by our parser written in CMake language (fake m4 with regexps). Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
* Refactor to allow non-bbstored store configurations.Chris Wilson2015-06-28
| | | | | | Make some keys not required in BackupDaemonConfigVerify, and verify them afterwards instead, when the rest of the configuration file has been read (and in future, the store type would be known.)
* Add command-line help to test executables.Chris Wilson2015-06-10
|
* Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD.Chris Wilson2014-12-22
| | | | | And compile errors on recent MinGW.
* Fix compile errors on Windows, thanks to Kai Liebenau for the patch.Chris Wilson2014-11-16
|
* Add option to truncate log file at start of every backup.Chris Wilson2014-11-16
| | | | Prevents backup log files from becoming too large.
* Improve exception message if a Daemon is used without being configured firstChris Wilson2014-09-18
|
* Remove ServerException.h and the exception code aliases that it defines.Chris Wilson2014-08-15
| | | | We don't really need these, so clean up by removing them.
* Refactor logging option processing out of Daemon class.Chris Wilson2014-04-09
| | | | Allows command-line tools to reuse the same option processing.
* Fix getopt header confusion.Chris Wilson2013-09-30
| | | | | | | | Our copy of getopt.h in lib/win32 was beating the system getopt.h in the search path, and providing different definitions, which clang picked up. Renamed our getopt.h to bsd_getopt.h, and added a box_getopt.h to decide whether to include this one instead of the system getopt.h.
* Set process title on Windows.Chris Wilson2013-08-25
| | | | | | Thanks to Arnaud for submitting the patch: "I propose a little patch to enable the SetProcessTitle function on windows system."
* Fix typo.Chris Wilson2012-06-07
|
* Split option processing out of Daemon::Main() to ease use of Daemon class in ↵Chris Wilson2012-01-22
| | | | tests.
* Avoid recompiling everything on MSVC when BoxVersion.h changes.Chris Wilson2011-10-25
|
* Link lib/server with qdbm and include the QDBM version in the daemon banner.Chris Wilson2011-04-22
|
* Include <process.h> to get a definition for getpid() from the Windows CRT,Chris Wilson2011-04-20
| | | | | to replace the emulated one in emu.cpp.
* Pass a C++ string instead of a char pointer for efficiency.Chris Wilson2011-03-27
|
* Finish enabling the file logging option for daemons.Chris Wilson2010-11-17
|
* Add log file logging to all daemons.Chris Wilson2010-11-17
|
* Fix compile on Debian Squeeze with libbsd-dev and libedit-dev installed,Chris Wilson2010-09-13
| | | | | | thanks to Dave Bamford for reporting and debugging. (merges [2734] from 0.11)
* Log the invalid log level.Chris Wilson2010-08-31
|
* Replace BOX_FILE_BBACKUPD_DEFAULT_CONFIG with Chris Wilson2010-06-06
| | | | | BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE.
* Include missing Utils.h header, needed for FileExists().Chris Wilson2009-04-09
|
* Change default location for config files from /etc/box to Chris Wilson2009-04-09
| | | | | /etc/boxbackup, thanks to Reinhard Tartler and the Debian Project.
* Hopefully fix compile error reported by Mirko on cross-compiler.Chris Wilson2009-03-29
|
* Add ability to specify a named log facility for syslog loggins, Chris Wilson2009-03-24
| | | | | requested by Kenny Millington.
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Remove -K option which now does nothing on Windows.Chris Wilson2008-10-03
| | | | | Add -Q option which disables all logging instead.
* Set console and syslog logging levels rather than global logging level,Chris Wilson2008-09-26
| | | | | as we may want to do something different when logging to a file.
* Unify program name and console logging tags.Chris Wilson2008-09-13
| | | | | | Add a new class, Logging::Tagger, which can be used to temporarily add information to the program name, such as the client ID in bbstored.
* Only set spDaemon in Daemon::Main, to allow Boxi to have a BackupDaemon Chris Wilson2008-08-21
| | | | | | | | | | | | and a BackupStoreDaemon in the same process in separate threads. Separate out Configure(filename) and Configure(Configuration) for Boxi. Use a std::auto_ptr to hold the Configuration so that we don't have to worry about releasing it ourselves. Remove some #ifdef WIN32.
* Really enable PID logging on Windows.Chris Wilson2008-08-03
|
* Enable logging of PID on Windows.Chris Wilson2008-08-03
| | | | | Enable both -k and -K options on all platforms.
* Move loading configuration into a separate method.Chris Wilson2008-05-28
| | | | | Add -W<level> option to set warning level explicitly.
* Command-line option fix from [1975]Chris Wilson2008-04-05
|
* 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.
* Add the -K option to Daemons on Windows to keep them quiet even though Chris Wilson2008-03-13
| | | | | | | | they don't fork by themselves. This is because the tests are able to run them in the background, and if they keep the console open then they will continue to spew to it. This option is normally only useful when running the daemon in a test.
* Only log daemon banner to syslog, not to console, as this is probably Chris Wilson2008-03-01
| | | | | | what users expect (and they have no way to control verbosity on the console this early).
* Disable -P option and showing PID in Logging on Windows.Chris Wilson2008-02-22
|
* Add support for microsecond timestamps and PID logging on console logChris Wilson2008-01-31
| | | | | for daemons.
* Print the path of the current/default configuration file in usage.Chris Wilson2008-01-05
|
* Fix getopt reset for solaris and maybe other platforms. SeeChris Wilson2007-11-07
| | | | | http://lists.debian.org/debian-glibc/2004/10/msg00070.html.
* 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])
* Compile fix. (merges [1850])Chris Wilson2007-10-17
|
* Refactor out command-line option processing, so that it can be extendedChris Wilson2007-10-17
| | | | | by subclasses. (merges [1849])