[arm-allstar] /var/log tmpfs problems
Tom Hayward
tom at tomh.us
Sat Jul 1 22:11:44 EST 2017
On Sat, Jul 1, 2017 at 4:19 PM, "Jeremy Utley via arm-allstar"
<arm-allstar at hamvoip.org> wrote:
> Hello all! I'm trying to use Munin to do some monitoring of my Pi system,
> so I've installed the Arch Linux "munin-node" package. It works great until
> the machine reboots, at which time the log directoy disappears (as /var/log
> is a tmpfs, which I'm not exactly a fan of, but that's beside the point).
> What's the best way of making sure the /var/log/munin directory gets created
> after this tmpfs mount is created?
How about something like this?
--- /usr/bin/munin-cron 2014-01-27 03:24:53.000000000 -0800
+++ munin-cron 2017-07-01 20:10:27.115156530 -0700
@@ -1,5 +1,8 @@
#!/bin/sh
+# Recreate the munin log directory
+mkdir -p /var/log/munin
+
# This used to test if the executables were installed. But that is
# perfectly redundant and supresses errors that the admin should see.
Tom KD7LXL
More information about the arm-allstar
mailing list