From b8b0195d6d76358dfb592cf7e49781a443bf1849 Mon Sep 17 00:00:00 2001 From: Shawn Craver Date: Thu, 4 Apr 2019 07:06:31 -0400 Subject: [PATCH] OpenBSD rc.d script (#1306) * OpenBSD rc.d script Signed-off-by: Shawn Craver --- examples/openbsd-rc.d/node_exporter | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 examples/openbsd-rc.d/node_exporter diff --git a/examples/openbsd-rc.d/node_exporter b/examples/openbsd-rc.d/node_exporter new file mode 100755 index 00000000..e0a73830 --- /dev/null +++ b/examples/openbsd-rc.d/node_exporter @@ -0,0 +1,12 @@ +#!/bin/ksh +# Shawn Craver, 2019-04-02 + + +daemon="/usr/local/bin/node_exporter" + +. /etc/rc.d/rc.subr + +rc_bg=YES + +rc_cmd $1 +