diff --git a/docs/chapters/installation.rst b/docs/chapters/installation.rst index b50d634f..81ea0d35 100644 --- a/docs/chapters/installation.rst +++ b/docs/chapters/installation.rst @@ -5,7 +5,7 @@ Bastille is available in the official FreeBSD ports tree at ``sysutils/bastille``. Binary packages are available in quarterly and latest repositories. -Current version is ``1.3.1.251223``. +Current version is ``1.3.2.251225``. To install from the FreeBSD package repository: diff --git a/docs/conf.py b/docs/conf.py index a0b3700e..501ee12b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,9 +5,9 @@ copyright = '2018-2025, Christer Edwards' author = 'Christer Edwards' # The short X.Y version -version = '1.3.1' +version = '1.3.2' # The full version, including alpha/beta/rc tags -release = '1.3.1.251223' +release = '1.3.2.251225' # -- General configuration --------------------------------------------------- diff --git a/usr/local/bin/bastille b/usr/local/bin/bastille index 194929ee..81b6d8b6 100755 --- a/usr/local/bin/bastille +++ b/usr/local/bin/bastille @@ -32,7 +32,7 @@ PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin -BASTILLE_VERSION=1.3.1.251223 +BASTILLE_VERSION=1.3.2.251225 # Validate config file # Copy default when 'setup' is called diff --git a/usr/local/etc/rc.d/bastille-monitor b/usr/local/etc/rc.d/bastille-monitor new file mode 100644 index 00000000..e13f8069 --- /dev/null +++ b/usr/local/etc/rc.d/bastille-monitor @@ -0,0 +1,30 @@ +#!/bin/sh + +# Bastille Monitor +# +# PROVIDE: bastille_monitor +# REQUIRE: jail +# KEYWORD: shutdown + +# Add the following to /etc/rc.conf[.local] to enable this service +# +# bastille_monitor_enable (bool): Set to "NO" by default. +# Set to "YES" to enable. +# bastille_monitor_rate (bool): Rate at which to run the monitor. +# Set to "10" by default, 5 minutes. +# + +. /etc/rc.subr + +name=bastille_monitor +rcvar=${name}_enable + +: ${bastille_monitor_enable:="NO"} +: ${bastille_monitor_rate:="10"} + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-R ${bastille_monitor_rate} -P ${pidfile} -H -o /var/log/${name}.log /usr/local/bin/bastille monitor ALL" + +load_rc_config ${name} +run_rc_command "$1"