Skip to content

Commit

Permalink
remove watchdog; -b for only the current boot
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 24, 2024
1 parent 4e025d2 commit 5e3c604
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion workspace/scripts/04-install-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sudo systemctl enable [email protected]
# systemd: add long running pioreactor jobs
sudo cp /files/system/systemd/[email protected] $SYSTEMD_DIR
sudo systemctl enable [email protected]
sudo systemctl enable [email protected] # this is leader-only, and will just no-op for workers
# sudo systemctl enable [email protected] # this is leader-only, and will just no-op for workers
sudo systemctl enable pioreactor_startup_run@mqtt_to_db_streaming.service # this is leader-only, and will just no-op for workers

# systemd: remove wifi powersave - helps with mdns discovery
Expand Down
49 changes: 24 additions & 25 deletions workspace/scripts/06-install-pioreactor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,6 @@ echo "Directory for adding to the UI using yaml files, see docs: https://docs.pi
sudo -u $USERNAME mkdir -p $PIO_DIR/experiment_profiles
echo "Directory for adding experiment profiles: https://docs.pioreactor.com/developer-guide/experiment-profiles" | sudo -u $USERNAME tee $PIO_DIR/experiment_profiles/README.txt > /dev/null

cat <<EOT >> $PIO_DIR/experiment_profiles/demo_stirring_example.yaml
experiment_profile_name: Demo stirring example
metadata:
author: Cam Davidson-Pilon
description: A simple profile to start stirring in your Pioreactor(s), update RPM at 90 seconds, and turn off after 180 seconds.
common:
jobs:
stirring:
actions:
- type: start
hours_elapsed: 0.0
options:
target_rpm: 400.0
- type: update
hours_elapsed: 0.025
options:
target_rpm: 800.0
- type: stop
hours_elapsed: 0.05
EOT
sudo chown pioreactor:pioreactor $PIO_DIR/experiment_profiles/demo_stirring_example.yaml


cat <<EOT >> $PIO_DIR/experiment_profiles/demo_logging_example.yaml
experiment_profile_name: Demo of logging real-time data
Expand Down Expand Up @@ -83,11 +59,34 @@ common:
message: "Value of target_rpm in \${{unit()}} is \${{::stirring:target_rpm}} RPM. Stopping."
- type: stop
hours_elapsed: 0.02
EOT
sudo chown pioreactor:pioreactor $PIO_DIR/experiment_profiles/demo_logging_example.yaml


cat <<EOT >> $PIO_DIR/experiment_profiles/demo_stirring_example.yaml
experiment_profile_name: Demo stirring example
metadata:
author: Cam Davidson-Pilon
description: A simple profile to start stirring in your Pioreactor(s), update RPM at 90 seconds, and turn off after 180 seconds.
common:
jobs:
stirring:
actions:
- type: start
hours_elapsed: 0.0
options:
target_rpm: 400.0
- type: update
hours_elapsed: 0.025
options:
target_rpm: 800.0
- type: stop
hours_elapsed: 0.05
EOT
sudo chown pioreactor:pioreactor $PIO_DIR/experiment_profiles/demo_stirring_example.yaml

sudo chown pioreactor:pioreactor $PIO_DIR/experiment_profiles/demo_logging_example.yaml
sudo -u $USERNAME touch $PIO_DIR/unit_config.ini


Expand Down
2 changes: 1 addition & 1 deletion workspace/scripts/files/root.cron
Original file line number Diff line number Diff line change
@@ -1 +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
*/5 * * * * (head -n 9 /boot/firmware/network_info.txt && journalctl -u NetworkManager --no-pager -b) > /tmp/network_info.txt && cp /tmp/network_info.txt /boot/firmware/network_info.txt

0 comments on commit 5e3c604

Please sign in to comment.