tools/init.slackware

changeset 639
276ee5b61348
parent 638
186f0c2d3e76
child 640
0f6daacdd597
--- a/tools/init.slackware	Sat Mar 16 10:51:41 2024 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#!/bin/bash
-#
-# thermferm init script for Slackware.
-#
-# Copyright 2022-2024 Michiel Broek, the Netherlands.
-
-PIDFILE=/run/thermferm.pid
-
-case "$1" in
-  start)
-    echo -n "Starting Fermentation Controller: "
-    if [ -f ${PIDFILE} ]; then
-  	echo "already running."
-    else
-	/usr/bin/thermferm
-        echo "done."
-    fi
-    ;;
-
-  stop)
-    echo -n "Stopping Fermentation Controller: "
-    if [ -f ${PIDFILE} ]; then
-      kill $(cat ${PIDFILE})
-      echo "done."
-    else
-      echo "wasn't running."
-    fi
-    ;;
-
-  restart)
-    $0 stop
-    sleep 2
-    $0 start
-    ;;
-
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-

mercurial