diff options
author | Guillermo Ramos | 2025-05-29 09:26:27 +0200 |
---|---|---|
committer | Guillermo Ramos | 2025-05-29 09:26:27 +0200 |
commit | b73b01a56a19ab093566ecc55592801014bc1f61 (patch) | |
tree | 0ccd775bbb15406449c584f33cbf13f3b19b9a3e /smarttemp_exporter/smarttemp_exporter.openrc | |
download | microservices-b73b01a56a19ab093566ecc55592801014bc1f61.tar.gz |
Diffstat (limited to 'smarttemp_exporter/smarttemp_exporter.openrc')
-rw-r--r-- | smarttemp_exporter/smarttemp_exporter.openrc | 14 |
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" |