613:163fcb0914e2 | 614:389097dc665d |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # thermferm init script for Slackware. | 3 # thermferm init script for Slackware. |
4 # | 4 # |
5 # Copyright 2021 Michiel Broek, the Netherlands. | 5 # Copyright 2022 Michiel Broek, the Netherlands. |
6 | 6 |
7 PIDFILE=/var/run/thermferm.pid | 7 PIDFILE=/var/run/thermferm.pid |
8 | 8 |
9 case "$1" in | 9 case "$1" in |
10 start) | 10 start) |
27 fi | 27 fi |
28 ;; | 28 ;; |
29 | 29 |
30 restart) | 30 restart) |
31 $0 stop | 31 $0 stop |
32 sleep 1 | 32 sleep 2 |
33 $0 start | 33 $0 start |
34 ;; | 34 ;; |
35 | 35 |
36 *) | 36 *) |
37 echo "usage: $0 {start|stop|restart}" | 37 echo "usage: $0 {start|stop|restart}" |