Renamed initscript

Sat, 16 Mar 2024 11:08:27 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 16 Mar 2024 11:08:27 +0100
changeset 640
0f6daacdd597
parent 639
276ee5b61348
child 641
000d40511c92

Renamed initscript

tools/Makefile file | annotate | diff | comparison | revisions
tools/rc.slackware file | annotate | diff | comparison | revisions
tools/rc.thermferm file | annotate | diff | comparison | revisions
--- a/tools/Makefile	Sat Mar 16 11:06:16 2024 +0100
+++ b/tools/Makefile	Sat Mar 16 11:08:27 2024 +0100
@@ -2,7 +2,7 @@
 
 include ../Makefile.global
 
-OTHER		= Makefile rc.slackware default
+OTHER		= Makefile rc.thermferm default
 
 #############################################################################
 
@@ -17,7 +17,7 @@
 
 install:
 		mkdir -p ${DESTDIR}/etc/rc.d ${DESTDIR}/etc/default
-		${INSTALL} -c -g root -o root -m 0755 rc.slackware ${DESTDIR}/etc/rc.d/rc.thermferm
+		${INSTALL} -c -g root -o root -m 0755 rc.thermferm ${DESTDIR}/etc/rc.d/rc.thermferm
 		${INSTALL} -c -g root -o root -m 0644 default ${DESTDIR}/etc/default/thermferm
 
 filelist:	Makefile
--- a/tools/rc.slackware	Sat Mar 16 11:06:16 2024 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-#!/bin/bash
-#
-# thermferm init script for Slackware.
-#
-# Copyright 2022-2024 Michiel Broek, the Netherlands.
-
-# Source default settings:
-if [ -r /etc/default/thermferm ]; then
-  . /etc/default/thermferm
-fi
-
-PIDFILE=/run/thermferm.pid
-
-case "$1" in
-  start)
-    echo -n "Starting Fermentation Controller: "
-    if [ -f ${PIDFILE} ]; then
-  	echo "already running."
-    else
-	${THERMFERM_BIN}
-        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
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/rc.thermferm	Sat Mar 16 11:08:27 2024 +0100
@@ -0,0 +1,44 @@
+#!/bin/bash
+#
+# thermferm init script for Slackware.
+#
+# Copyright 2022-2024 Michiel Broek, the Netherlands.
+
+# Source default settings:
+if [ -r /etc/default/thermferm ]; then
+  . /etc/default/thermferm
+fi
+
+PIDFILE=/run/thermferm.pid
+
+case "$1" in
+  start)
+    echo -n "Starting Fermentation Controller: "
+    if [ -f ${PIDFILE} ]; then
+  	echo "already running."
+    else
+	${THERMFERM_BIN}
+        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