summaryrefslogtreecommitdiff
path: root/smarttemp_exporter/smarttemp_exporter.openrc
diff options
context:
space:
mode:
authorGuillermo Ramos2025-05-29 09:26:27 +0200
committerGuillermo Ramos2025-05-29 09:26:27 +0200
commitb73b01a56a19ab093566ecc55592801014bc1f61 (patch)
tree0ccd775bbb15406449c584f33cbf13f3b19b9a3e /smarttemp_exporter/smarttemp_exporter.openrc
downloadmicroservices-master.tar.gz
smarttmp_exporterHEADmaster
Diffstat (limited to 'smarttemp_exporter/smarttemp_exporter.openrc')
-rw-r--r--smarttemp_exporter/smarttemp_exporter.openrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/smarttemp_exporter/smarttemp_exporter.openrc b/smarttemp_exporter/smarttemp_exporter.openrc
new file mode 100644
index 0000000..6663f22
--- /dev/null
+++ b/smarttemp_exporter/smarttemp_exporter.openrc
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 2023-2025 Guillermo Ramos <gramos@gramos.me>
+# Distributed under the terms of the GNU General Public License v2
+#
+# Requirements:
+# - perl
+# - ucspi-tcp
+
+command='/usr/bin/tcpserver'
+command_args='-H 0.0.0.0 9123 /usr/local/bin/smarttemp_exporter'
+command_background='true'
+pidfile="/run/${RC_SVCNAME}.pid"
+output_log="/var/log/${RC_SVCNAME}.log"
+error_log="/var/log/${RC_SVCNAME}.log"