Skip to content

Commit

Permalink
Make munged log via syslog
Browse files Browse the repository at this point in the history
By default munge writes logs by itself to
/var/long/munge/munged.log. This prevents those logs from being
forwarded to the log server (e.g. the OpenHPC SMS/admin machine), and
in case those logs for one reason or another grows rapidly (e.g.
dun/munge#26) it can be a problem for
diskless nodes or compute nodes with small partitions for /var/log.

This should fix openhpc#943

Signed-off-by: Janne Blomqvist <[email protected]>
  • Loading branch information
jabl committed Mar 11, 2019
1 parent 37ee0bb commit 275409d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/rms/munge/SOURCES/munge.syslog.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/etc/munge.service.in
+++ src/etc/munge.service.in
@@ -6,7 +6,7 @@ After=time-sync.target

[Service]
Type=forking
-ExecStart=@sbindir@/munged
+ExecStart=@sbindir@/munged --syslog
PIDFile=@localstatedir@/run/munge/munged.pid
User=munge
Group=munge
2 changes: 2 additions & 0 deletions components/rms/munge/SPECS/munge.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Patch1: %{pname}.logdir.patch
Patch2: %{pname}.initd.patch
# 11/10/14 [email protected] - enable systemd-based startup
Patch3: %{pname}.service.patch
# 2019-03-11 [email protected] - Enable syslog
Patch4: %{pname}.syslog.patch

%if 0%{?suse_version} >= 1230
Requires(pre): shadow
Expand Down

0 comments on commit 275409d

Please sign in to comment.