[LEDE-DEV] [PATCH] rsyslog: do not daemonize and allow procd to manage rsyslogd

Alexis Green alexis at cessp.it
Mon Oct 17 18:15:01 PDT 2016


This allows user to stop and/or restart the daemon. Currently, running
"/etc/init.d/rsyslogd stop" does not stop the daemon once it's started.

Signed-off-by: Alexis Green <alexis at cessp.it>
---
 net/rsyslog/files/rsyslog.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rsyslog/files/rsyslog.init b/net/rsyslog/files/rsyslog.init
index 5fc8849..20eb2a4 100644
--- a/net/rsyslog/files/rsyslog.init
+++ b/net/rsyslog/files/rsyslog.init
@@ -7,6 +7,6 @@ USE_PROCD=1
 
 start_service() {
 	procd_open_instance
-	procd_set_param command /usr/sbin/rsyslogd
+	procd_set_param command /usr/sbin/rsyslogd -n
 	procd_close_instance
 }
-- 
2.8.1



More information about the Lede-dev mailing list