[openwrt/openwrt] procd: change procd_add_start_mount_trigger to do restart
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 8 07:26:49 PDT 2021
dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/80be893d2b3bf550ece5c15cf7ed967b31f7042d
commit 80be893d2b3bf550ece5c15cf7ed967b31f7042d
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Aug 8 14:47:54 2021 +0100
procd: change procd_add_start_mount_trigger to do restart
Change procd_add_start_mount_trigger to procd_add_restart_mount_trigger
and make it call 'restart' instead of 'start'.
This is more useful as it allows to handle both cases, intial start of
a services as well as restarting services. Calling 'restart' on a
service which has not yet been started has the same result as calling
'start'.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
package/system/procd/files/procd.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index de30c76878..14314bec95 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -393,8 +393,8 @@ procd_get_mountpoints() {
) | sort -u
}
-_procd_add_start_mount_trigger() {
- _procd_add_action_mount_trigger start $(procd_get_mountpoints "$@")
+_procd_add_restart_mount_trigger() {
+ _procd_add_action_mount_trigger restart $(procd_get_mountpoints "$@")
}
_procd_add_reload_mount_trigger() {
@@ -636,7 +636,7 @@ _procd_wrapper \
procd_add_reload_trigger \
procd_add_reload_interface_trigger \
procd_add_reload_mount_trigger \
- procd_add_start_mount_trigger \
+ procd_add_restart_mount_trigger \
procd_open_trigger \
procd_close_trigger \
procd_open_instance \
More information about the lede-commits
mailing list