summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2018-11-10 13:02:43 +0000
committerJustin Lecher <jlec@gentoo.org>2018-11-10 13:25:37 +0000
commite96fb723bfab0c360e657b8d8bdca326cc9fa356 (patch)
treefb0199dbb1e408b5861dd19873cde3e801dccbca /sys-auth
parentsys-auth/munge: Fix munge.key permission problems (diff)
downloadgentoo-e96fb723bfab0c360e657b8d8bdca326cc9fa356.tar.gz
gentoo-e96fb723bfab0c360e657b8d8bdca326cc9fa356.tar.bz2
gentoo-e96fb723bfab0c360e657b8d8bdca326cc9fa356.zip
sys-auth/munge: Update init
Signed-off-by: Justin Lecher <jlec@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/munge/files/munged.initd7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-auth/munge/files/munged.initd b/sys-auth/munge/files/munged.initd
index 6bb0a1097f25..0cbbe7213a93 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 ${?}
}