aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files
Commit message (Collapse)AuthorAgeFilesLines
* rpcd: remove file when appliedHuangbin Zhan2020-11-121-4/+6
| | | | | | Make sure exit value of this script is zero. Or the file won't be deleted. Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* rpcd: adapt defaults for changed ubus.sock pathDaniel Golle2020-10-222-1/+7
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* rpcd: fix respawn settingsPetr Štetiar2020-03-161-1/+1
| | | | | | | | | | | | | | | | | | | Commit 432ec292ccc8 ("rpcd: add respawn param") has introduced infinite restarting of the service which could be reached over network. This is not recommended security practice as it might give potential adversary infinite number of tries in case there might be some issue in the rpcd or its surrounding stack. So lets remove the currently bogus `respawn_retry` variable (it wasn't possible to override it anyway), reverting to the previous default max. of 5 service restarts which could be now overriden via system's UCI settings if desired. Cc: Jo-Philip Wich <jow@mein.io> Cc: Florian Eckert <fe@dev.tdt.de> Cc: Hauke Mehrtens <hauke@hauke-m.de> Fixes: 432ec292ccc8 ("rpcd: add respawn param") Signed-off-by: Petr Štetiar <ynezz@true.cz>
* rpcd: add respawn paramFlorian Eckert2019-12-231-0/+1
| | | | | | | | | | The rpcd service is an important service, but if the service stops working for any reason, no one will ever respawn that service. With this commit, the procd service will monitor if the rpcd service is running. If the rpcd service has crashed, then procd respawns the rpcd service. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* 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>
* rpcd: implement service_running() in init.d scriptRafał Miłecki2019-07-151-0/+3
| | | | | | It allows checking if service is running. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* rpcd: fix init script reload actionJo-Philipp Wich2019-06-061-5/+2
| | | | | | | Drop the legacy start() and stop() procedures and define a proper reload signal action instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* rpcd: update to latest Git headJo-Philipp Wich2018-11-222-1/+7
| | | | | | | | | | 2cc4b99 file: use global exec timeout instead of own hardcoded limit ecd1660 exec: increase maximum execution time to 120s Also expose the socket and timeout options in /etc/config/rpcd for easier use. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* procd: convert various packages to procd style init.d scriptsJohn Crispin2013-09-171-4/+7
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38023
* rpcd: update to git headJo-Philipp Wich2013-09-111-0/+7
| | | | | | | - introduces persistent null session to allow access to procedures without login - implements session.login procedure to support user logins via json-rpc SVN-Revision: 37941
* rpcd: update to git headJo-Philipp Wich2013-09-091-0/+4
| | | | | | | | | | - adds support for service triggering on config commit - adds uci transaction support - adds daemon reload support without loosing session data - exports headers for use by external plugins - drops LuCI2 in favor to an out of tree plugin SVN-Revision: 37921
* Add rpcd - an extensible backend server for ubus-over-json-rpc operations, ↵Jo-Philipp Wich2013-09-021-0/+14
session and acl management. SVN-Revision: 37877