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
commit
bd1b669ed9
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      install.sh
  2. +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


Loading…
Cancel
Save