nrpe systemd socket activation

If you’re using nrpe socket activation and don’t have a template file, try this in /etc/systemd/system/nrpe@.service :

[Unit]
Description=nrpe socket service
Requires=nrpe.socket

[Service]
User=nrpe
ExecStart=-/usr/bin/nrpe -c /etc/nrpe/nrpe.cfg --inetd
StandardInput=socket
StandardOutput=inherit
StandardError=journal

[Install]
WantedBy=multi-user.target

 

Leave a Reply

Your email address will not be published. Required fields are marked *