From 86fb715be57716458837433a722c4aaddc618967 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 4 Oct 2022 11:29:41 +0200 Subject: [PATCH] [examples/snac_openbsd] new file. --- examples/snac_openbsd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/snac_openbsd diff --git a/examples/snac_openbsd b/examples/snac_openbsd new file mode 100644 index 0000000..b5fbed9 --- /dev/null +++ b/examples/snac_openbsd @@ -0,0 +1,20 @@ +#!/bin/ksh + +daemon_args="httpd /PATH/TO/SNAC/BASEDIR" +daemon_logger="daemon.info" +daemon_user="SNACUSER" +daemon="/usr/local/bin/snac ${daemon_args}" + +. /etc/rc.d/rc.subr + +pexp="${daemon}.*" +rc_reload=NO +rc_bg=YES + +rc_cmd $1 + +# this is an OpenBSD /etc/rc.d startup script. Edit and run as root: +# +# install snac_openbsd /etc/rc.d/snac +# rcctl enable snac +# rcctl start snac