Subject: [alpine-aports] [PATCH] main/syslog-ng: remove check for syslog.conf

From: Stefan Wagner <[email-masked]>
Date: Tue, 26 Apr 2016 00:57:02 +0200

As syslog-ng is using syslog-ng.conf as its default configuration file
syslog.conf will never exist. Therefore it's not necessary to check for the
existance of syslog.conf on start.
---
 main/syslog-ng/syslog-ng.initd | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/main/syslog-ng/syslog-ng.initd b/main/syslog-ng/syslog-ng.initd
index c558a39..387d20e 100644
--- a/main/syslog-ng/syslog-ng.initd
+++ b/main/syslog-ng/syslog-ng.initd
@@ -11,8 +11,11 @@ depend() {
 	provide logger
 }
 
+start_pre() {
+	update
+}
+
 start() {
-	[ ! -f /etc/syslog-ng/syslog.conf ] && update
 	ebegin "Starting syslog-ng"
 	start-stop-daemon --start --quiet --exec /usr/sbin/syslog-ng --pidfile /run/syslog-ng.pid
 	eend $?
-- 
2.8.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---