summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-07-18hotplug: fix firmware loadingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-02service: fix trigger related double-freeFelix Fietkau
The memdup is unnecessary, because the data is contained inside in->config. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-02service: implement get_data to dump the data fields for every instanceFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-02instance: allow filling "data" with fields of arbitrary typeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-19make static linking work for upgradedJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-17only build upgraded on mipsJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-16move upgrade to its own subfolderJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-16rename the folder option to pathJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-11procd: force -lc -lgcc to handle cross-dependencies between those twoFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-11Increase buffers for hotplug and cmdline for UMLSteven Barth
Thanks to Markus Stenberg for debugging and testing. Signed-off-by: Steven Barth <steven@midlink.org>
2014-06-11only add the nandupgrade method when /sbin/upgraded existsJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-11add upgraded support for nand flashingJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-06allow instances to report errors. if an error is set, the instance wont be ↵John Crispin
started Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-05service: do not emit any service events before the ubus connection is upFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-05service: register the subscriber object before the event handlerFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-05service: fix a debug message typoFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-05service: fix a leftover debug hackFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-050467aebb79f64d1c9d05a84367fda7c02c4ea6b8 included too muchJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-05wait for kmod loader to complete on first bootJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-05send ubus_notify events when servers and instances change stateJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-05add wildcard support to trigger matching codeJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-05allow instances to register ubus object that should be watchedJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-05-25service: fix json object leak in validate codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: free trigger json_script contextFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: fix trigger data memleakFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: ensure that trigger timers are always cancelled before freeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: fix memleak in trigger handlingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: use avl_remove_all_elements()Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: remove unused argument to service_update()Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: fix double-free in error pathFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25service: use blob_memdup()Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-25hotplug: fix memleak in debug codepathFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-24inittab: strip trailing whitespace (especially newline)Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-20inittab: avoid character collating to work around character class escaping ↵Felix Fietkau
issue in a regex This makes the regex work with musl Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-18rcS: fix a format string bugFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-18rcS: do not access ustream_buf data directlyFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-02-24instance: improve portability of setting resource limitsFelix Fietkau
the data type varies for different implementations Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-02-07commit e0921ed71bab0ad7d2344774a33c22809eb10190 set the timeout globallyJohn Crispin
lets restrict it to stop scripts only Signed-off-by: John Crispin <blogic@openwrt.org>
2014-01-29fix the dump logic to show validators and triggers even if no instances existJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-01-29force all runqueue tasks to a timeout of 15sJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-01-20state.c: pass ubus commandline is writable buffer to service_start_early()Jo-Philipp Wich
The service_start_early() function uses strtok() on the command line argument, therfore we cannot pass it constant string literals directly. Fixes OpenWrt bug #14832 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2013-12-18procd: fix service file trackingJo-Philipp Wich
The instance_config_move() function in the procd instance managing code is missing a blobmsg_list_move() call to update the tracked file items with the newly calculated checksums in case of a file change. Without that change, services are always reloaded after the first change to a tracked file regardless of whether there are any subsequent changes or not. Add a missing instance of blobmsg_list_free() as well. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2013-12-09fix copy paste errorJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-12-09procd: set resource limits for service instancesUlrich Weber
useful to enable core dumps or set resource limits Signed-off-by: Ulrich Weber <uw@xyne.com>
2013-11-22cleanup debug level handoverJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-20fix rcS memory leaks and running hookJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-19make ue of the md5.c inside libuboxJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-19fix up the order of respawn parameters for ubusJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-18add a event broadcast functionJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-11-18add debug level handover between preinit and main processJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>