From edc6540b7fd97352239e42aa6f4f8deefbd80e25 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 10 Sep 2015 13:30:58 +0200 Subject: [PATCH] rhel startup options --- etc/rhel/ot-recorder.init | 2 +- etc/rhel/ot-recorder.sysconfig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/rhel/ot-recorder.init b/etc/rhel/ot-recorder.init index 853cd53..143ee8d 100644 --- a/etc/rhel/ot-recorder.init +++ b/etc/rhel/ot-recorder.init @@ -40,7 +40,7 @@ start() { return 0 fi printf "%-50s%s" "Starting $prog: " '' - $exec $OTR_TOPICS & + $exec $OTR_OPTS $OTR_TOPICS & # save pid to file if you want echo $! > $pidfile diff --git a/etc/rhel/ot-recorder.sysconfig b/etc/rhel/ot-recorder.sysconfig index 7bfc263..b5a6ba0 100644 --- a/etc/rhel/ot-recorder.sysconfig +++ b/etc/rhel/ot-recorder.sysconfig @@ -7,3 +7,5 @@ export OTR_PORT="1883" # export OTR_CAFILE="/path/to/tls/CA.crt" export OTR_STORAGEDIR="/var/spool/owntracks/store" export OTR_TOPICS='owntracks/#' + +export OTR_OPTS="--http-host 127.0.0.1 --http-port 8083 --doc-root /var/spool/owntracks/docroot"