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:
commit
0435ec3abb
@ -7,6 +7,8 @@ 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
|
||||
|
3
log2ram.hourly
Normal file
3
log2ram.hourly
Normal file
@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
/usr/local/bin/log2ram write
|
Loading…
Reference in New Issue
Block a user