# Rcctl exporter

Building:

```
go build -mod=vendor .

Cross:
GOOS=openbsd go build -mod=vendor .
```

Installation:

```
groupadd _rcctlexporter
useradd -L daemon -d /nonexistent -s /sbin/nologin -g _rcctlexporter _rcctlexporter
cp rcctl_exporter /usr/local/bin/rcctl_exporter
```

Create rc script:

```
cp rcctl_exporter.rc /etc/rc.d/rcctl_exporter
chmod 555 /etc/rc.d/rcctl_exporter
```

Enable and start service:

```
rcctl enable rcctl_exporter
rcctl set rcctl_exporter flags "--web.listen-address=127.0.0.1:9501"
rcctl start rcctl_exporter
```
