1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

Merge pull request #8 from NickDaly/hourly-cron

Sync the ramlog back to disk, hourly.
This commit is contained in:
azlux 2016-12-01 01:27:33 +01:00 committed by GitHub
commit 0435ec3abb
3 changed files with 7 additions and 2 deletions

View File

@ -7,8 +7,10 @@ then
cp log2ram /usr/local/bin/log2ram
chmod a+x /usr/local/bin/log2ram
systemctl enable log2ram
cp log2ram.hourly /etc/cron.hourly/log2ram
chmod +x /etc/cron.hourly/log2ram
echo "Reboot to activate log2ram"
else
else
echo "You need to be ROOT (sudo can be used)"
fi

0
log2ram Normal file → Executable file
View File

3
log2ram.hourly Normal file
View File

@ -0,0 +1,3 @@
#! /bin/sh
/usr/local/bin/log2ram write