1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
openwrt/package
Arthur Skowronek fc23bcdaa2 base-files: add service_stopped as a post stop hook
Purpose of these changes is to introduce a hook for post service
shutdown in a similar fashion to the existing hook service_started. I
found it to be useful to specify a hook that is called once the service
has been stopped and not before the service is stopped like the
stop_service hook does.

The concrete use case I have for this is that I'm running a binary that
takes over the hardware watchdog timer. Said binary unfortunately can
not use ubus directly to tell procd to hand over the watchdog timer so
this has to be done in the service file for the binary in question. In
order to support a clean handover of the watchdog timer back to procd,
the service init script has to dispatch the ubus invocation once the
binary in question has been stopped.

Signed-off-by: Arthur Skowronek <ags@digineo.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
[added commit message, use the same form as other hooks]
2019-05-05 21:11:01 +02:00
..
base-files base-files: add service_stopped as a post stop hook 2019-05-05 21:11:01 +02:00
boot xburst: Remove unmaintained target 2019-05-03 21:27:12 +02:00
devel kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
firmware ath10k-firmware: update Candela Tech firmware images 2019-03-30 10:36:31 +01:00
kernel kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
libs kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
network Revert "uhttpd: disable concurrent requests by default" 2019-04-23 08:15:46 +02:00
system procd: add procd_running() helper for checking running state 2019-05-02 22:14:19 +02:00
utils adm5120: Remove unmaintained target 2019-05-03 21:27:12 +02:00
Makefile build: add ABI_VERSION to binary package names 2019-01-19 14:32:12 +01:00