diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:20:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:20:09 +0000 |
commit | 018433a6da60c6395baaaa0833d5c50ac6645552 (patch) | |
tree | 2012deeff2f98b267c0c10425c1d4a054190b73f /startup/openbsd-init.in | |
parent | Initial commit. (diff) | |
download | nagios-nrpe-018433a6da60c6395baaaa0833d5c50ac6645552.tar.xz nagios-nrpe-018433a6da60c6395baaaa0833d5c50ac6645552.zip |
Adding upstream version 3.2.1.upstream/3.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'startup/openbsd-init.in')
-rw-r--r-- | startup/openbsd-init.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/startup/openbsd-init.in b/startup/openbsd-init.in new file mode 100644 index 0000000..1713646 --- /dev/null +++ b/startup/openbsd-init.in @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Copyright (c) 2016 Nagios(R) Core(TM) Development Team +# + +daemon="@sbindir@/nrpe" + +. /etc/rc.d/rc.subr + +rc_pre() { + install -d -o @nrpe_user@ ${pidfile%/*} +} + +rc_reload() { + pkill -HUP -xf "${pexp}" +} + +rc_cmd "$1" |