No description
  • Go 96.5%
  • Shell 3.5%
Find a file
2020-10-12 18:48:24 +02:00
rcctl initial commit 2020-08-31 17:12:43 +02:00
syspatch fixed syspatch 2020-10-12 18:48:24 +02:00
vendor initial commit 2020-08-31 17:12:43 +02:00
.gitignore initial commit 2020-08-31 17:12:43 +02:00
go.mod initial commit 2020-08-31 17:12:43 +02:00
go.sum initial commit 2020-08-31 17:12:43 +02:00
LICENSE initial commit 2020-08-31 17:12:43 +02:00
main.go added syspatch exporter 2020-08-31 17:49:38 +02:00
rcctl_exporter.rc initial commit 2020-08-31 17:12:43 +02:00
README.md fixed syspatch 2020-10-12 18:48:24 +02:00

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

Allow syspatch execution as root user:

echo "permit nopass _rcctlexporter as root cmd /usr/sbin/syspatch args -c" >>/etc/doas.conf

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