Telegraf user looses its groups every reboot

Started by andrema2, July 30, 2020, 09:29:01 PM

Previous topic - Next topic
Hi,

In order to get the Unbound metrics, I need to add telegraf user to unbound group. Apparentely the user gets recriated during the reboot process and looses its membership from unbound.

How can I add it to unbound group during the boot process ? Where is the startup file I could change to add it ?

Thanks

Ok, I found and edited /usr/local/opnsense/scripts/OPNsense/Telegraf/setup.sh

adding

/usr/sbin/pw groupmod unbound - m telegraf