commit:     e96fb723bfab0c360e657b8d8bdca326cc9fa356
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 10 13:02:43 2018 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Nov 10 13:25:37 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e96fb723

sys-auth/munge: Update init

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sys-auth/munge/files/munged.initd | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys-auth/munge/files/munged.initd 
b/sys-auth/munge/files/munged.initd
index 6bb0a1097f2..0cbbe7213a9 100644
--- a/sys-auth/munge/files/munged.initd
+++ b/sys-auth/munge/files/munged.initd
@@ -22,15 +22,16 @@ start() {
                eerror "Failed to create munge key"
                eend 1 && exit 1
        fi
-       checkpath -d -m 755 -o munge:munge /var/run/munge
+       checkpath -d -m 755 -o munge:munge /run/munge
        checkpath -d -m 711 -o munge:munge /var/lib/munge
        checkpath -d -m 700 -o munge:munge /var/log/munge
        checkpath -f -m 600 -o munge:munge "${KEYFILE}"
        start-stop-daemon -S /usr/sbin/munged \
                --user munge \
                --group munge \
-               --pidfile /var/run/munge/munged.pid \
+               --pidfile /run/munge/munged.pid \
                -- \
+               --log-file=/var/log/munge/munged.log \
                --key-file="${KEYFILE}" \
                --group-check-mtime="${GROUP_CHECK_MTIME}" \
                --group-update-time="${GROUP_UPDATE_TIME}" \
@@ -41,7 +42,7 @@ start() {
 stop() {
        ebegin "Stopping munged"
        start-stop-daemon -K /usr/sbin/munged \
-               --pidfile /var/run/munge/munged.pid
+               --pidfile /run/munge/munged.pid
        eend ${?}
 }
 

Reply via email to