[OpenWrt-Devel] [PATCH] base-files: procd initscripts restart on reload

Tristan Plumb tristan at trstn.net
Sun Sep 14 08:14:11 EDT 2014


Currently procd enabled initscripts will restart on reload when the command
line changes, which works for many packages, but not anything that keeps its
configuration in a file, like dnsmasq.

Signed-off-by: Tristan Plumb <tristan at trstn.net>
---
 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 695fc16..83ece49 100755
--- a/package/base-files/files/etc/rc.common
+++ b/package/base-files/files/etc/rc.common
@@ -123,7 +123,7 @@ ${INIT_TRACE:+set -x}
                if eval "type reload_service" 2>/dev/null >/dev/null; then
                        reload_service "$@"
                else
-                       start
+                       restart
                fi
        }
 
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list