aboutsummaryrefslogtreecommitdiff
path: root/src/daemonizer (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-03-04Copyright: Update to 2022mj-xmr8-8/+8
2020-05-06Update copyright year to 2020SomaticFanatic8-8/+8
Update copyright year to 2020
2019-11-17Fix #6147 DB corruption from child process overwriteHoward Chu1-1/+6
Don't leave stdout/stderr dangling on a fork.
2019-04-23daemonizer: add --non-interactive for windowsmoneromooo-monero1-1/+9
The RPC functional tests need it Thanks to iDunk for debugging/testing
2019-03-05Update 2019 copyrightbinaryFate8-8/+8
2018-12-04Merge pull request #4894Riccardo Spagni1-1/+2
aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero) 1a0733e5 windows_service: fix memory leak (moneromooo-monero) 0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero) 5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero) d4f50cb1 remove some unused code (moneromooo-monero) 61163971 a few minor (but easy) performance tweaks (moneromooo-monero) 30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
2018-11-23windows_service: fix memory leakmoneromooo-monero1-1/+2
Found by codacy.com
2018-11-15Removed a lot of unnecessary includesMartijn Otto1-1/+0
2018-10-15Fix Windows build after epee dependency changeiDunk54001-0/+1
2018-02-23monerod: do not log to tmpdir in daemon modeston1th2-0/+6
The logging to /tmp/bitmonero.daemon.stdout.stderr caused segfaults if the /tmp mount was full (#2851). Now the daemon is only logging to /tmp/bitmonero.daemon.stdout.stderr in the debug builds.
2018-01-26Update 2018 copyrightxmr-eric8-8/+8
2017-12-23Fix Windows builddEBRUYNE-11-0/+3
Fix no new line
2017-11-15Tools, daemonizer: fix building on WindowsiDunk54001-2/+2
2017-07-22daemon: Add ability to write a PID fileErik de Castro Lopo3-11/+58
The PID file will only be written if the daemon is called with the `--detach` command line argument and a `--pidfile /some/file/path` argument.
2017-07-11Don't hardcode /tmpHoward Chu1-3/+11
2017-03-21Merge pull request #1897Riccardo Spagni1-0/+9
44a5b038 create a foreground non-interactive mode (Noah Watkins)
2017-02-21create a foreground non-interactive modeNoah Watkins1-0/+9
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni8-8/+8
2016-09-26Dropped "bit" from bitmonero.Randi Joseph1-2/+2
2016-09-18cmake: transitive deps and remove deprecated LINK_*redfish1-6/+2
Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
2016-07-09daemonizer: posix: keep parent's working dir and umaskredfish1-14/+0
Keep the working directory (and umask) inherited from the parent. Otherwise, it's impossible to control the working directory of the daemon (from systemd, for example). Furthermoer, bitmonerod attempts to create logging directories and files *in current working directory*. This fails due to permission denied and generates a (caught, nonfatal) exception. Below is the strace with this patch applied (so, no `chdir("/")`), showing successful opens at `log/` relative path. Without this patch they fail (sorry, didn't save the trace). ``` 28911 getcwd("/.../bitmonero", 128) = 25 28911 stat64("/var/lib/bitmonero/.bitmonero", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 28911 stat64("/etc/bitmonerod.conf", {st_mode=S_IFREG|0644, st_size=244, ...}) = 0 28911 open("/etc/bitmonerod.conf", O_RDONLY|O_LARGEFILE) = 3 28911 open("/var/log/bitmonero/bitmonero.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3 28911 stat64("log", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 28911 stat64("log/dbg", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 28911 open("log/dbg/main.log", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4 ``` The reasoning of chdir("/") in order to prevent the daemon from holding a filesystem in busy state is not compelling at all: the choice of working directory for the daemon is the user's business not the daemon's.
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero1-2/+1
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero1-1/+2
Useful for debugging users' logs
2016-03-11Use boost::thread instead of std::threadHoward Chu2-3/+3
and all other associated IPC
2015-12-31update versionRiccardo Spagni2-2/+2
2015-12-31updated copyright yearRiccardo Spagni8-8/+8
2015-12-13posix_daemonizer: only create the main daemon object in the last childmoneromooo-monero1-1/+1
This prevents the intermediate thread from exiting properly, as fork creates a child process with only one thread, so any existing data_logger thread will not be in the child. Since this thread sets a flag the data_logger dtor blocks on, all children threads will hang on exit.
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni7-0/+196
2015-03-20Hopefully fixes build on Windows for real this timeThomas Winget1-5/+5
2015-03-20Hopefully fixes build on WindowsThomas Winget1-2/+2
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget9-0/+981
many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.