From e463d963bad97023a9c895558b5f6d16b95dc4f3 Mon Sep 17 00:00:00 2001 From: Pakobbix Date: Mon, 6 Feb 2023 16:22:20 +0100 Subject: [PATCH] Added logging for restarter --- gui_start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui_start.sh b/gui_start.sh index 9433c81..858552f 100755 --- a/gui_start.sh +++ b/gui_start.sh @@ -354,8 +354,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration" # check if restart script is already configured if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then # add restart script, reboot and update to crontab - echo "0 * * * * /bin/bash /root/ebesucher/restart.sh -@reboot /bin/bash /root/ebesucher/restart.sh + echo "0 * * * * /bin/bash -x /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1 +@reboot /bin/bash /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1 0 0 * * 0 reboot 0 4 * * * /bin/bash /root/update_system.sh" >>/tmp/ebesucher # Let cron reload the new configured crontab @@ -464,8 +464,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration" # check if restart script is already configured if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then # add restart script - echo "0 * * * * /bin/bash /home/$linux_user/ebesucher/restart.sh -@reboot /bin/bash /home/$linux_user/ebesucher/restart.sh" >>/tmp/ebesucher + echo "0 * * * * /bin/bash -x /home/$linux_user/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1 +@reboot /bin/bash /home/$linux_user/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1" >>/tmp/ebesucher # Let cron reload the new configured crontab crontab /tmp/ebesucher # delete the export