Systemd

From Segfault
Jump to: navigation, search

Override .service files

Override .service files with:

sudo systemctl edit nrpe.service

> [Service]
> ExecStart=
> ExecStart=/usr/bin/nrpe -c /etc/nrpe/nrpe.cfg -f -n

After that, an override is produced in /etc/systemd/system/nrpe.service.d containing these lines. Note: we had to clear ExecStart first before we could re-define it, [1] for mysterious reasons.[2]

References