[source] base-files: fix default procd reload

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:44:16 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/28c350f2f0c33a8b0c54c1eab858d1084593f615

commit 28c350f2f0c33a8b0c54c1eab858d1084593f615
Author: Alexandru Ardelean <ardeleanalex at gmail.com>
AuthorDate: Fri May 19 16:19:20 2017 +0300

    base-files: fix default procd reload
    
    Bug introduced with 6713694.
    
    I did not count on procd handling reload as mentioned
    in this doc:
    https://wiki.openwrt.org/inbox/procd-init-scripts
    
    ```
    procd_set_param file /var/etc/your_service.conf # /etc/init.d/your_service reload will restart the daemon if these files have changed
    procd_set_param netdev dev # likewise, except if dev's ifindex changes.
    procd_set_param data name=value ... # likewise, except if this data changes.
    ```
    
    The service would be restarted regardless of any of those params.
    
    Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>
    (cherry picked from commit c7ee30d53af12ea725296cc323f68e8fe04e532c)
---
 package/base-files/files/etc/rc.common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common
index af7bed4..e80af89 100755
--- a/package/base-files/files/etc/rc.common
+++ b/package/base-files/files/etc/rc.common
@@ -130,7 +130,7 @@ ${INIT_TRACE:+set -x}
 		if eval "type reload_service" 2>/dev/null >/dev/null; then
 			reload_service "$@"
 		else
-			restart
+			start
 		fi
 	}
 



More information about the lede-commits mailing list