log2ram risen from the dead?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
jake
Posts: 10
Joined: Mon Feb 27, 2017 1:58 am

log2ram risen from the dead?

Post by jake »

I gave my NanoPi NEO on v147 email access and I immediately started getting hourly notifications from cron:
Subject: Cron <root@mhj-neo> cd / && run-parts --report /etc/cron.hourly

/etc/cron.hourly/log2ram:
/etc/cron.hourly/log2ram: 3: /etc/cron.hourly/log2ram: /usr/local/sbin/log2ram: not found
run-parts: /etc/cron.hourly/log2ram exited with return code 127
So I took a look inside /etc/cron.hourly and found: -rwxr-xr-x 1 root root 42 Feb 3 05:06 log2ram :o

Inside log2ram:

Code: Select all

#! /#! /bin/sh

/usr/local/sbin/log2ram write
Problem is, there is nothing in /usr/local/sbin

I did my homework and found #781 which says it's gone since v145. So how do I get rid of this undead thing?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: log2ram risen from the dead?

Post by Fourdee »

jake wrote:I gave my NanoPi NEO on v147 email access and I immediately started getting hourly notifications from cron:
Subject: Cron <root@mhj-neo> cd / && run-parts --report /etc/cron.hourly

/etc/cron.hourly/log2ram:
/etc/cron.hourly/log2ram: 3: /etc/cron.hourly/log2ram: /usr/local/sbin/log2ram: not found
run-parts: /etc/cron.hourly/log2ram exited with return code 127
So I took a look inside /etc/cron.hourly and found: -rwxr-xr-x 1 root root 42 Feb 3 05:06 log2ram :o

Inside log2ram:

Code: Select all

#! /#! /bin/sh

/usr/local/sbin/log2ram write
Problem is, there is nothing in /usr/local/sbin

I did my homework and found #781 which says it's gone since v145. So how do I get rid of this undead thing?
Hi Jake,

Thanks for the report.

Yep, this was added to ARMbian's images in the last few months (we didn't know at the time). Pretty sure we removed all traces of it, but the following should do it:

Code: Select all

rm /etc/cron.hourly/log2ram
I'll add that to our patch aswell for v148 update.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
jake
Posts: 10
Joined: Mon Feb 27, 2017 1:58 am

Re: log2ram risen from the dead?

Post by jake »

Alright! I put a stake in it and it's done. (I hope)

Thanks, Fourdee!! :lol:
Post Reply