This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
log2ram
mirror of
https://github.com/azlux/log2ram.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
18
Wiki
Activity
Browse Source
Stupid I am
Log on disk wasn't copy on install, so the shutdown destroy everything.
#18
#17
pull/19/head
azlux
7 years ago
parent
9d76a1b082
commit
bd1b669ed9
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
install.sh
+6
-0
log2ram
+ 1
- 0
install.sh
View File
@@ -11,6 +11,7 @@ then
systemctl enable log2ram
cp log2ram.hourly /etc/cron.hourly/log2ram
chmod +x /etc/cron.hourly/log2ram
/usr/local/bin/log2ram init
echo "##### Reboot to activate log2ram #####"
else
+ 6
- 0
log2ram
View File
@@ -57,6 +57,12 @@ case "$1" in
write)
syncToDisk
;;
init)
[ -d $HDD_LOG ] || mkdir $HDD_LOG
cp -rfup $RAM_LOG -T $HDD_LOG 2>&1 | $LOG_OUTPUT
;;
*)
echo "Usage: log2ram {start|stop|write}" >&2
exit 1
Write
Preview
Loading…
Cancel
Save