aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/ubox/files
Commit message (Collapse)AuthorAgeFilesLines
* netifd,lldpd,rpcd,log: use generic service_runningPetr Štetiar2019-09-151-4/+0
| | | | | | | | | | | | | | | | | | commit eb204d14f75c ("base-files: implement generic service_running") introduced generic service_running so it's not needed to copy&paste same 3 lines over and over again. I've removed service_running from netifd/network init script as well, because it was not working properly, looked quite strange and I didn't understand the intention: $ /etc/init.d/network stop $ service network running && echo "yes" || echo "nope" ( have to wait for 30s ) Command failed: Request timed out yes Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ubox: implement service_running() in log init.d scriptRafał Miłecki2019-07-151-0/+4
| | | | | | It allows checking if service is running. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* procd: Add wrapper for uci_validate_section()Jeffery To2019-01-221-11/+7
| | | | | | | | | | | | | | | | | This adds a wrapper (uci_load_validate) for uci_validate_section() that allows callers (through a callback function) to access the values set by uci_validate_section(), without having to manually declare a (potentially long) list of local variables. The callback function receives two arguments when called, the config section name and the return value of uci_validate_section(). If no callback function is given, then the wrapper exits with the value returned by uci_validate_section(). This also updates several init scripts to use the new wrapper function. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* logd: create log directory for log_fileKarl Palsson2018-06-071-0/+2
| | | | | | | If log_file is specified, make sure its directory exists. Signed-off-by: Karl Palsson <karlp@etactica.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
* ubox: update to latest git HEADJohn Crispin2018-02-141-1/+1
| | | | | | | | | | 128bc35 logread: fix reconnect logd logic 66347ec logread: move the code setting up the request blob out of the main loop 975a258 logread: move output connection setup code out of main loop b81bea7 logread: cleanup pid file handling d73e7d2 ubox: Replace strerror(errno) with %m format. Signed-off-by: John Crispin <john@phrozen.org>
* ubox: increase default size of system log buffer to 64 kBHannu Nyman2016-06-071-1/+1
| | | | | | | | Increase the default system log buffer size from 16 kB (default both in logd source and in the startup script) to 64 kB by adjusting the default value in startup script. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* ubox: make logging code honour the hostname properlyJohn Crispin2016-05-101-2/+4
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ubox: add log_trailer_null option to uciJohn Crispin2015-04-091-2/+6
| | | | | | | | | this allow us to use syslog tcp with \0 trailer instead of \n trailer (logread -0 option) Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com> SVN-Revision: 45329
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42278
* ubox: fix remote loggingJohn Crispin2014-07-021-1/+1
| | | | | | | | | in r41439 a flag for enabling remote logging was added, but the actual check was done on a different variable. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> SVN-Revision: 41467
* ubox: add a flag that allows us to disable remote log while keeping the ip ↵John Crispin2014-07-011-1/+3
| | | | | | | | | | settings inside uci this makes webui foo a lot easier Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41439
* ubox: update to latest git headJohn Crispin2014-03-181-2/+5
| | | | | | | | logread now shows the right time. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39951
* ubox: update to latest git headJohn Crispin2014-03-121-6/+20
| | | | | | | | | use the fd handover api of ubus to transfer log data the uci option log_buffer_size can be used to override the default size of 16k Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39898
* fstools: add the new fstools packageJohn Crispin2014-03-123-16/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39895
* ubox: logd did not register its config.reload trigger properlyJohn Crispin2014-02-181-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39616
* ubox: revert log buffer size changesJohn Crispin2014-01-221-24/+5
| | | | | | | | the fix horribly broke existing setups Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39366
* ubox: update to latest git headJohn Crispin2014-01-191-5/+24
| | | | | | | | adds option to set internal buffer size Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39333
* ubox: fix up pidcount handling inside log.initJohn Crispin2013-12-091-0/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39022
* Revert "ubox: the validation code has problems with the "(" char. use string ↵Jo-Philipp Wich2013-11-281-1/+1
| | | | | | | | for now" This reverts commit f7c2ac3ea9b5f2dc4ef4ce4ef195de8a4ac5546b. SVN-Revision: 38937
* ubox: the validation code has problems with the "(" char. use string for nowJohn Crispin2013-11-261-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38916
* ubox: fix typo that caused log_file to not be validated properlyJohn Crispin2013-11-251-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38906
* procd: add validation to the log init scriptJohn Crispin2013-11-201-10/+23
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38879
* procd: ubox: update to latest git headJohn Crispin2013-11-161-0/+61
| | | | | | | | | | move log service from procd to ubox some debloating on procd the preinit part of procd is now also a seperate binary Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38822
* ubox: add a uci-default script for fstab generationJohn Crispin2013-07-081-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37199
* ubox: update to latest git revisionJohn Crispin2013-06-281-0/+14
| | | | | | | | | | | | | | * add pivot root support * add back a /etc/init.d/fstab * add "block mount/umount" support * add anonymous swap/mount support * add auto swap/mount support * fix superflous error when inserting modules * add back jffs2reset/jffs2mark Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37057
* packages: clean up the package folderJohn Crispin2013-06-211-0/+1
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007