When managed by systemd, unbound is started with the "-p" argument that tells it to not create a PID file at all. I don't know what use you have for the PID but you can obtain it with:

> systemctl show --property MainPID --value unbound

That's of course assuming unbound is managed by systemd.

HTH,
Simon

Reply via email to