OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Stan - 28.04.2019

FS#2261 - commit baaf38c5e540b23ba086d94743de860b60c37161 prevents apps from storing runtime info in PROCD

This commit: https://git.openwrt.org/?p=project/procd.git;a=commit;h=baaf38c5e540b23ba086d94743de860b60c37161 deletes the PROCD instance on exit, however it is being used in the simple-adblock package https://github.com/openwrt/packages/blob/master/net/simple-adblock/files/simple-adblock.init#L141-L154 to store runtime info.

On snapshots this information now gets deleted.

Could the powers that be either:
1. Offer an option to not automatically delete PROCD info on instance exit
2. Rule that a misuse of PROCD so that I can then store runtime info on tmpfs instead

Don’t know how to tag Kristian Evensen kristian.evensen@gmail.com and Hans Dedecker dedeckeh@gmail.com in the bug.

Admin
Jo-Philipp Wich commented on 29.04.2019 06:22

You can use the data object outside of the instance, e.g. `ubus call service set '{ "name": "foo", "data": { "whatever": true } }'` instead of `{ "name": "foo", "instances": [ {..., "data": { "whatever": true } } ] }`.

If you cannot do this due to other constraints, then the only solution I see is setting an infinite sleep command instead of an empty command spec (or something with a very long sleep time, procd will relaunch it anyway).

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing