app-admin/sysklogd: Revbump to set correct localstatedir path

This is required to not make syslogd bail out on startup if
/var/lib/run directory does not exist.

Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://bugs.gentoo.org/701048
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2019-11-24 14:25:02 +01:00
parent 0b527e20d4
commit 0d3159ce3a
2 changed files with 6 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ start_daemon() {
ebegin "sysklogd -> start: ${daemon}"
start-stop-daemon --start --exec /usr/sbin/"${daemon}" \
-b -m --pidfile /var/run/"${daemon}".pid \
-- ${fg_opt} ${options}
-- ${options} ${fg_opt}
retval=$?
eend ${retval} "Failed to start ${daemon}"

View File

@@ -41,6 +41,11 @@ src_prepare() {
src_configure() {
local myeconfargs=(
# Required for correct pid file location. (bug #701048)
# syslogd appends "/run/syslogd.pid" to the localstatedir
# path, and tries to write to that file even when being
# started in foreground. So we need to pin this to /
--localstatedir="${EPREFIX}"/
$(use_with klogd)
$(use_with logger)
$(use_with systemd systemd $(systemd_get_systemunitdir))