Rename and fixes

This commit is contained in:
davidnewhall2 2020-02-01 04:02:04 -08:00
parent 07cd6d3e50
commit 30742fbe54
4 changed files with 10 additions and 6 deletions

View File

@ -260,7 +260,7 @@ package_build_freebsd: readme man freebsd
[ "$(FORMULA)" != "service" ] || mkdir -p $@/usr/local/etc/rc.d
[ "$(FORMULA)" != "service" ] || \
sed -e "s/{{BINARY}}/$(BINARY)/g" -e "s/{{BINARYU}}/$(BINARYU)/g" -e "s/{{CONFIG_FILE}}/$(CONFIG_FILE)/g" \
init/bsd/template.rc.d > $@/usr/local/etc/rc.d/$(BINARY)
init/bsd/freebsd.rc.d > $@/usr/local/etc/rc.d/$(BINARY)
[ "$(FORMULA)" != "service" ] || chmod +x $@/usr/local/etc/rc.d/$(BINARY)
package_build_freebsd_386: package_build_freebsd freebsd386

View File

@ -3,7 +3,7 @@ unifi-poller(1) -- Utility to poll UniFi Controller Metrics and store them in In
SYNOPSIS
---
`unifi-poller -c /etc/unifi-poller.conf`
`unifi-poller -c /etc/unifi-poller/up.conf`
This daemon polls a UniFi controller at a short interval and stores the collected
measurements in an Influx Database. The measurements and metrics collected belong
@ -51,9 +51,9 @@ OPTIONS
CONFIGURATION
---
* Config File Default Location:
* Linux: `/etc/unifi-poller.conf`
* macOS/BSD: `/usr/local/etc/unifi-poller.conf`
* Windows: `C:\\ProgramData\\unifi-poller.conf`
* Mac/BSD: `/usr/local/etc/unifi-poller/up.conf`
* Windows: `C:\\ProgramData\\unifi-poller\\up.conf`
* Others: `/etc/unifi-poller/up.conf`
* Config File Default Format: `TOML`
* Possible formats: `XML`, `JSON`, `TOML`, `YAML`

View File

@ -5,5 +5,5 @@ Generic FreeBSD rc.d service file lives here.
sed -e "s/{{BINARY}}/app-name/g" \
-e "s/{{BINARYU}}/app_name/g" \
-e "s/{{CONFIG_FILE}}/app-name.conf/g" \
template.rc.d > /usr/local/etc/rc.d/app-name
freebsd.rc.d > /usr/local/etc/rc.d/app-name
```

View File

@ -27,5 +27,9 @@ load_rc_config ${name}
mkdir -p $(dirname ${pidfile})
chown -R ${{BINARYU}}_user $(dirname ${pidfile})
# Suck in optional exported override variables.
# ie. add something like the following to this file: export UP_POLLER_DEBUG=true
[ -f "/usr/local/etc/defaults/${real_name}" ] && . "/usr/local/etc/defaults/${real_name}"
# Go!
run_rc_command "$1"