summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon
AgeCommit message (Collapse)Author
2016-01-01Unify function comment styleMaxim Biro
Use doxygen java-style function comments already used in log.[c|h].
2016-01-01Fix license headers and file descriptionsMaxim Biro
2016-01-01Fix include pathsMaxim Biro
They are relative to the Makefile instead of the source file itself, which is unintuitive and is messing with my IDE.
2016-01-01Remove dependency on files from testing directoryMaxim Biro
Also remove unneeded includes and refactor sleep define.
2016-01-01Put command-line arguments related functions in a separate fileMaxim Biro
2016-01-01Put config-related functions in a separate fileMaxim Biro
bootstrap_node_packets.c was giving an error as it was being included twice and there were no include guards, so part of it was split into bootstrap_node_packets.h.
2015-12-31Add ability to run the daemon in foregroundMaxim Biro
Useful for things like a Docker container or just running it in the terminal. Complements the stdout logging option. This is actually why the stdout logging was added in the first place -- to be used in the foreground mode, though nothing stops one from using stdout in the background mode, which one could redirect to a file.
2015-12-31Fix wrong filename mentioned above licenseMaxim Biro
2015-12-31Rename LOGGER_BACKEND to LOG_BACKENDMaxim Biro
2015-12-31Add ability to specify multiple command line argumentsMaxim Biro
Needed in order to specify which log backend to use. Init scripts need to be updated to contain --config before the path to the config file.
2015-12-31Make daemon use the new log codeMaxim Biro
"log" is a reserved name (log from math.h), so it got changed into write_log.
2015-12-31Make logger a global object instead of an instanceMaxim Biro
Passing Logger object into every function isn't fun. See for yourself: something as simple as a public key printing function turns from >void print_public_key(const uint8_t *public_key) to >void print_public_key(Logger *logger, const uint8_t *public_key)
2015-12-30Add logger object to be able to support multiple logging backendsMaxim Biro
2015-12-30Change log levelsMaxim Biro
Some of them were set incorrectly, e.g. something that caused the daemon to exit was marked as just a warning, instead of an error. Removed debug level as it was hard to decide whether something should go into info or debug. This is mostly because the use of the debug level wasn't well defined. Debug should be used for information that could help a user to debug an issue, but messages marked as debug were by the most part the "success" log messages, which could go into info level instead.
2015-07-07Link changes.irungentoo
2015-06-28Removed useless parameter from new_TCP_server()irungentoo
2015-05-24Merge branch 'bootstrapd-update2' of ↵irungentoo
https://github.com/nurupo/InsertProjectNameHere
2015-05-13Fixed segfault in tox-bootstrapd.irungentoo
2015-05-10Updated daemon's systemd file, fixed typos in READMEMaxim Biro
@arthurtiteica has pointed out that systemd has more suitable facilities for creating a temporary directory for a PID file rather than calling ExecStartPre, which requires an absolute path to coreutils executables we used for creating a directory and changing its owner, paths of which are are not universal across distributions. Systemd can take care of it for us without need to provide absolute paths, which is what we use here.
2015-02-05Documentation and service description for using tox-bootstrapd withEugene Lopatin
systemd
2015-01-25Replace hardcoded nodes with examplesMaxim Biro
Reverts Proplex'es change.
2014-10-15Merge branch 'tox-bootstrapd-network-error-handling' of ↵irungentoo
https://github.com/nurupo/InsertProjectNameHere
2014-10-14Don't fail when the binary is not foundMaxim Biro
Per Debian Policy Manual, paragraph 9.3.2: Writing the scripts.
2014-10-13Fixed a typoMaxim Biro
2014-10-13Added some const-correctnessnessMaxim Biro
2014-10-12Fixed a typoMaxim Biro
2014-10-12Added IPv4 fallback, made IPv6 and IPv4 fallback enabled by defaultMaxim Biro
2014-10-12Free ports when there are no valid onesMaxim Biro
2014-10-11Merge branch 'master' of https://github.com/stqism/ToxCoreirungentoo
2014-10-10Does a realloc with a size of 0 if every port is invalidSean Qureshi
2014-10-10Enable IPv6, fix systemd PID bugSean Qureshi
2014-10-06Add working tox nodesDavid Lohle
since the daemon is in the process of being packaged for easy deployment, it's probably best we have a working default config that extends existing nodes.
2014-09-09spelling correctionscgar
2014-08-18Added .sh ending to bootstrapd's init scriptMaxim Biro
Fixes some build issues.
2014-08-17Fixed some warningsMaxim Biro
2014-08-17Fixed daemon taking long time to stopMaxim Biro
2014-08-17Renamed files for less confusionMaxim Biro
2014-08-17Made possible to run the daemon under its own userMaxim Biro
2014-08-17Made init.d script work with systemdMaxim Biro
2014-08-16Renamed tox_bootstrap_daemon into tox-bootstrapdMaxim Biro
2014-06-19Merge branch 'bootstrap_daemon-leaks-1' of https://github.com/tux3/toxcore ↵irungentoo
into tux3-bootstrap_daemon-leaks-1
2014-06-18Fix scope, ressource leaks in boostrap daemonTux3 / Mlkj / !Lev.uXFMLA
Reduce scope of config_setting_t *elem Fix various leaks of files keys_file and pid_file
2014-05-20Install tox_bootstrap_daemonstal
I call on the venerable @jin_eld once again to verify that this change is correct.
2014-05-18Made config file more consistent with default valuesMaxim Biro
2014-05-18Added default ports to the .c file, included 33445 portMaxim Biro
2014-05-18Fixed a bugMaxim Biro
2014-05-18Allow multiple instances of the daemonMaxim Biro
2014-05-18Fixed out of bounds write.irungentoo
2014-05-18Added MOTD functionalityMaxim Biro
2014-05-17Some small fixesMaxim Biro