From 62b22a9471740750293bb3b53ff53633940fd87c Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 12 Jul 2020 16:28:41 +0200 Subject: [PATCH] Mention OpenBSD support, add example init script. --- README.md | 11 ++++++++++- contrib/init/molly-brown.openbsd.example | 13 +++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 contrib/init/molly-brown.openbsd.example diff --git a/README.md b/README.md index ed20e69..4b884ff 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,9 @@ The follow features are planned for the future: Molly Brown is known to run on: -* GNU/Linux * FreeBSD +* GNU/Linux +* OpenBSD * 9Front Please let us know if you get it to work on some other platform! @@ -140,6 +141,14 @@ directory of the Molly Brown source directory. More detailed instructions on OpenRC setup are welcome! +#### OpenBSD + +An example OpenBSD initscript for Molly Brown, named +`molly-brown.openbsd.example`, can be found in the `contrib/init` +directory of the Molly Brown source directory. + +More detailed instructions on OpenBSD setup are welcome! + ## Configuration Options The following sections detail all the options which can be set in diff --git a/contrib/init/molly-brown.openbsd.example b/contrib/init/molly-brown.openbsd.example new file mode 100644 index 0000000..6c3682c --- /dev/null +++ b/contrib/init/molly-brown.openbsd.example @@ -0,0 +1,13 @@ +#!/bin/ksh + +daemon='/usr/sbin/molly-brown -c /etc/molly/molly.conf &' + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_stop() { + pkill molly-brown +} + +rc_cmd $1