aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-04-26 00:57:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-02 19:57:51 +0200
commit255a5e7a9fb1123a9fd3fc71243065304665003a (patch)
tree86dca4bc2dc62b7e3a0a89fdcc42d745c6f9928f /main
parente3daf433466cc79cee92e5e42f0c9c23a5a1aa51 (diff)
downloadaports-255a5e7a9fb1123a9fd3fc71243065304665003a.tar.bz2
aports-255a5e7a9fb1123a9fd3fc71243065304665003a.tar.xz
main/syslog-ng: remove check for syslog.conf
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.
Diffstat (limited to 'main')
-rw-r--r--main/syslog-ng/syslog-ng.initd5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/syslog-ng/syslog-ng.initd b/main/syslog-ng/syslog-ng.initd
index c558a39deb..387d20e2f7 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 $?