mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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}"
|
||||
|
||||
|
||||
@@ -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))
|
||||
Reference in New Issue
Block a user