Commit Graph

325 Commits (4a6795409d1520fd3da3e909a8bcf9d7fd0927bb)

Author SHA1 Message Date
John Crispin 9912d02fa1 procd: fix uci_validation
Regardles of the return code from validate_data _error variable will be 0 due
to 'local' command in the previous line. With this patch we are able to catch
the return code from validate_data tool.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 41414
10 years ago
John Crispin 9b714b6e7b procd: fix nand.sh kernel_length typo
sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41327
10 years ago
John Crispin bce52219fa procd: update to latest git head
this fixes the upgraded linking issue on arm.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41279
10 years ago
John Crispin 54faeadb07 procd: various improvements to nand.sh
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41278
10 years ago
John Crispin 42f450b722 procd: forgot to update the git id in the last commit
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41239
10 years ago
John Crispin 0cf34cee5e procd: make upgarded depend on mips, the static linking on arm fails
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41238
10 years ago
John Crispin 1a3ebd51ad procd: some cleanup for SysupgradeNAND
Removed unused ubi file file from template as ubinized images are
passed directly and not inside the tarball.
Also removed left-over white-space.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41237
10 years ago
John Crispin 3dca5a158d procd: various cleanups to /lib/upgrade/nand.sh
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41222
10 years ago
John Crispin 21eac7a7db procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41221
10 years ago
John Crispin 91d82d7b36 procd: rename procd_add_network_trigger
i got complaints about the bad naming of the api. lets rename it while there are no users yet.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41220
10 years ago
Felix Fietkau b30b59773b procd: update to the latest version, fixes static linking of upgraded
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41148
10 years ago
Felix Fietkau 79bbc4fbfb procd: allow passing multiple config files to procd_add_reload_trigger
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41146
10 years ago
Steven Barth 12cdfef54c procd: fix overflow in hotplug socket on certain targets
SVN-Revision: 41142
10 years ago
John Crispin 1e876b4191 procd: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41129
10 years ago
Felix Fietkau 71cda6a1e0 procd: Fix USB cellular modems hotplug events
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem.

(see Ticket #14117)

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>

SVN-Revision: 41039
10 years ago
John Crispin bd179b2610 procd: service instances can now report an error of why they failed to start.
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41031
10 years ago
Felix Fietkau e4cc5c1edf procd: update to the latest version, fixes a crash on early boot
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41020
10 years ago
John Crispin e1e5f21b2f procd: add wrapper calls for interface triggers
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41008
10 years ago
John Crispin ad3c2701b6 procd: update to latest git head
adds support for ubus event based triggers

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41007
10 years ago
John Crispin 59c8b70839 procd: rename local variable in uci_validate_section
Allow to use "package", "type", "name", "error" and "result"
as config option names:

package some_service
config section 'foo'
    option name 'bar'
    option type 'unknown'

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>

SVN-Revision: 41006
10 years ago
Felix Fietkau 0c383776df procd: update, fixes a bunch of memleaks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40856
10 years ago
Felix Fietkau 039dca04b8 procd: update to the latest version, fixes some musl compatibility issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40854
10 years ago
Felix Fietkau 93d8170084 procd: add explicit libubox dependency to force rebuild on ABI changes (#16300)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40740
10 years ago
Felix Fietkau 84c3487e5a procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39983
10 years ago
Felix Fietkau 0060005bd8 procd: update to latest version, fixes a format string bug in processing init script output (#15169)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39945
10 years ago
Felix Fietkau a42b421c79 procd: depend on libubox directly to rebuild on ABI changes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39724
10 years ago
John Crispin 97ee2bc616 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39613
10 years ago
John Crispin b71eb4b5df procd: the helper script did not export all functions properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39612
10 years ago
John Crispin 5dcb4cc7d1 libubox: ubox: procd: ubus: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39425
11 years ago
John Crispin 58dc9f593b procd: update to latest git head
Fixes OpenWrt bug #14832

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39352
11 years ago
Jo-Philipp Wich de5d9827ef procd: fix service file tracking
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>

SVN-Revision: 39132
11 years ago
John Crispin dda5dfb765 procd: update procd, add ulimit support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39023
11 years ago
John Crispin 31a2912cd9 netifd: enable coredumps again
got broken due procd startup. Requires procd resource limit patch.

Signed-off-by: Ulrich Weber <uw@xyne.com>

SVN-Revision: 39020
11 years ago
Jo-Philipp Wich 387761e2fc procd: fix processing of datatype specification with spaces
SVN-Revision: 38935
11 years ago
John Crispin 93e9a71538 base-files: allow users to delect debug level during boot
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38909
11 years ago
John Crispin 91de2648e9 procd: update procd.sh to make use of the new validate_data tool
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38908
11 years ago
John Crispin 3044b185d1 procd: fix the running hook #38868
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38885
11 years ago
John Crispin fcea2ab05a libubox: ubox: procd: move md5.{c,h} to libubox
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38870
11 years ago
John Crispin 460bf6b0d7 procd: update to latest git head
* fix up the order of respawn parameters for ubus
* add a event broadcast function
* add debug level handover between preinit and main process
* make the service running trigger be queued directly after the service was startetd
* Allow process respawning forever

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38868
11 years ago
Felix Fietkau c84a43cf40 procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38862
11 years ago
John Crispin 5fbfffe7f4 procd: ubox: update to latest git head
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
11 years ago
John Crispin a8163bfd16 procd: remove obselete script install reference Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38790
11 years ago
John Crispin 50db95e2f0 procd: options with default values are not parsed properly in the ubus register code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38788
11 years ago
John Crispin 130d7de07f procd: update to latest git head
this includes the first wip version of the uci validation backend

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38786
11 years ago
Felix Fietkau f099defc00 procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38705
11 years ago
John Crispin e75584e289 procd: update to latest git head
make sure that automatic respawning is turned off during upgrade

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38695
11 years ago
John Crispin e37b364ea3 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38529
11 years ago
Felix Fietkau d1794a7536 procd: fix command handling in procd_add_instance()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38350
11 years ago
Jo-Philipp Wich 2a2d408024 procd: fix incorrect use of sizeof() in vsnprintf()
SVN-Revision: 38268
11 years ago
John Crispin 52b61d6325 procd: update to latest git head
this fixes the syslog problem when using eglibc on x86.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38267
11 years ago
Luka Perkov ef5f836207 fix various init scripts
Changes include:

* removing unused variables
* replacing spaces with tabs where appropriate
* more consistency with variable declarations

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38142
11 years ago
John Crispin f874094402 procd: convert various packages to procd style init.d scripts
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38023
11 years ago
John Crispin 4f62127dea procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38022
11 years ago
Felix Fietkau 392ad68960 procd: update to latest version, adds udevtrigger improvements by juhosg
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37925
11 years ago
Jo-Philipp Wich 759112327a procd: update to git head
- terminates uloop after forking in service manager
	- redirects stdio to /dev/null for services executed from procd

SVN-Revision: 37799
11 years ago
Jo-Philipp Wich 408f0988e9 procd: update to git head
- terminates uloop after forking in hotplug handler
	- redirects stdio to /dev/null for processes executed from hotplug

SVN-Revision: 37792
11 years ago
John Crispin 093f211843 update ubox and procd to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37516
11 years ago
Jo-Philipp Wich 60c64808dc procd: ensure the log_proto has udp default value in log.init
SVN-Revision: 37508
11 years ago
John Crispin 11d027380e procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37504
11 years ago
Jo-Philipp Wich ec6954e64e procd: default to udp log protocol to keep backwards compat with busybox
SVN-Revision: 37496
11 years ago
Gabor Juhos adba04e53f procd: improve early console handling
The malta target is broken since procd is used
as init. The initramfs image boots fine, however
the console is not working.

Improve the early console handling to fix the
problem.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37451
11 years ago
John Crispin ae7a156434 procd: make old button hotplug rules work until all packages are migrated
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37336
11 years ago
John Crispin 6d7e477691 procd: update to latest git revision
* improves logread over net code

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37313
11 years ago
John Crispin 182866ecdc procd: update to latest git revision
this fixes a regression in the watchdog init code

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37259
11 years ago
John Crispin 3c306f9d07 procd: make the log port default to 514 if none is specified
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37257
11 years ago
John Crispin 585ab22c0f procd: update to latest git version
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37250
11 years ago
John Crispin 6f1112a5e8 procd: add proto and trigger support to the /etc/init.d/log
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37249
11 years ago
John Crispin 8eb56a88a4 procd: add a small script that handles config reloads until configd is ready
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37248
11 years ago
John Crispin 67eb275f69 procd: the delete ubus call was passed the wrong field name for services
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37247
11 years ago
John Crispin 9004e560fe procd: update to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37206
11 years ago
John Crispin 09f23981f4 procd: remove obseleted procd.init file
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37205
11 years ago
John Crispin 988c6209a1 procd: bump to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37158
11 years ago
John Crispin 6884a8b59d procd: extend shell binding with trigger support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37157
11 years ago
John Crispin c4f5b5d0d5 procd: update to latest git revision
* fix ubus reconnect handling
* set global mask 0
* add respawn support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37056
11 years ago
John Crispin 4ebf19b48f packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37007
11 years ago