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