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"