Thu, 12 Oct 2023 14:19:46 +0200
Version 0.3.44. Moved iSpindel Plato calculation from the php script to bmsd. This uses calibration data in the mon_ispindels table. Setup of this data will be done by the bmsapp applications. Default settings are stored in MySQL. From now on you don't need to store calibration data in the iSpindel.
#!/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