~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

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

Stefan Wagner <stw@bit-strickerei.de>
Details
Message ID
<1461625022-9059-1-git-send-email-stw@bit-strickerei.de>
Sender timestamp
1461625022
DKIM signature
missing
Download raw message
Patch: +4 -1
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)