1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net-mgmt/nrpe2/pkg-plist
Chris Rees 62abc9a9fc Improve rc script handling of pidfile, and do a few optimisations
PR:		ports/168225
Submitted by:	yar (based on)

While here, copy over default config file on install
2012-09-12 20:57:27 +00:00

8 lines
268 B
Plaintext

@unexec cmp -s %D/etc/nrpe.cfg-sample %D/etc/nrpe.cfg && rm %D/etc/nrpe.cfg || true
etc/nrpe.cfg-sample
@exec test -f %B/nrpe.cfg || cp -p %D/%F %B/nrpe.cfg
libexec/nagios/check_nrpe2
@dirrmtry libexec/nagios
sbin/nrpe2
@unexec rmdir %%NAGIOSDIR%% 2>/dev/null || true