Sun, 30 Oct 2022 16:46:03 +0100
Removed use of obsolete product equipment fields and added the equipment chiller fields. Changed tab 2 of the product view to show the chiller method.
#!/bin/bash # # bmsd init script for Slackware. # # Copyright 2021 Michiel Broek, the Netherlands. case "$1" in start) echo -n "Starting Brewery Management System: " if [ -f /var/lib/bms/.bms/bms.config ]; then if [ -f /var/lib/bms/.bms/run/bmsd.pid ]; then echo "already running." else /var/lib/bms/bin/bmsd sleep 1 echo "done." fi else echo "not configured." fi ;; stop) echo -n "Stopping Brewery Management System: " if [ -f /var/lib/bms/.bms/run/bmsd.pid ]; then kill $(cat /var/lib/bms/.bms/run/bmsd.pid) sleep 3 rm -f /var/lib/bms/.bms/run/bmsd.pid echo "done." else echo "wasn't running." fi ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac