Mail archive
alpine-aports

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

From: Stefan Wagner <stw_at_bit-strickerei.de>
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
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Apr 26 2016 - 00:57:02 GMT