Sun, 23 May 2021 16:41:35 +0200
Fermentables, hops, miscs and yeast now have tests against the added moment with the brewing stage. Added to inventory edit rows, delete rows, and pick choices for the moment to add or edit. Some more popups to explain certain blocks.
#!/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