tools/init.slackware

changeset 633
8b84e73af50e
parent 614
389097dc665d
equal deleted inserted replaced
632:9bd017df749b 633:8b84e73af50e
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # thermferm init script for Slackware. 3 # thermferm init script for Slackware.
4 # 4 #
5 # Copyright 2022 Michiel Broek, the Netherlands. 5 # Copyright 2022-2024 Michiel Broek, the Netherlands.
6 6
7 PIDFILE=/var/run/thermferm.pid 7 PIDFILE=/run/thermferm.pid
8 8
9 case "$1" in 9 case "$1" in
10 start) 10 start)
11 echo -n "Starting Fermentation Controller: " 11 echo -n "Starting Fermentation Controller: "
12 if [ -f ${PIDFILE} ]; then 12 if [ -f ${PIDFILE} ]; then
13 echo "already running." 13 echo "already running."
14 else 14 else
15 /usr/local/bin/thermferm 15 /usr/bin/thermferm
16 echo "done." 16 echo "done."
17 fi 17 fi
18 ;; 18 ;;
19 19
20 stop) 20 stop)

mercurial