Skip to content

Commit

Permalink
adding NM logs to network_info.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 19, 2024
1 parent 35e2a05 commit 4e025d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions workspace/scripts/06-install-pioreactor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,4 @@ fi

# useful libs
sudo apt-get install -y jq
sudo apt-get install -y rsyslog
4 changes: 3 additions & 1 deletion workspace/scripts/14-install-crontabs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ USERNAME=pioreactor

if [ "$LEADER" == "1" ]; then
crontab -u "$USERNAME" /files/pioreactor.cron
fi
fi

crontab -u root /files/root.cron
1 change: 1 addition & 0 deletions workspace/scripts/files/root.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*/5 * * * * (head -n 9 /boot/firmware/network_info.txt && journalctl -u NetworkManager --no-pager) > /tmp/network_info.txt && cp /tmp/network_info.txt /boot/firmware/network_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ After=network.target firstboot.service
Before=lighttpd.service huey.service

[Service]
User=pioreactor
ExecStart=/bin/bash /usr/local/bin/create_diskcache.sh
ExecStartPost=pio log -m "%n successful" -n systemd --local-only
Type=oneshot
Expand Down

0 comments on commit 4e025d2

Please sign in to comment.