Tue, 14 Feb 2023 14:01:02 +0100
Version 0.3.43 bmsd if there is no ssid received from a node message then send '' to the mon_nodes table in the database instead of (null). (one last file)
#!/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