Skip to content

Commit

Permalink
Merge pull request #24 from cedwards/master
Browse files Browse the repository at this point in the history
0.3.20181130 damned typos
  • Loading branch information
cedwards authored Nov 30, 2018
2 parents 7d40be6 + a495350 commit 46bfa62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion usr/local/bin/bastille
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
. /usr/local/etc/bastille/bastille.conf

## version
BASTILLE_VERSION="0.3.20181128"
BASTILLE_VERSION="0.3.20181130"

usage() {
cat << EOF
Expand Down
13 changes: 7 additions & 6 deletions usr/local/etc/rc.d/bastille
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
name=bastille
rcvar=${name}_enable

load_rc_config ${name}

: ${bastille_enable:=NO}
: ${bastille_list:="ALL"}

start_command="/usr/local/bin/bastille start"
stop_command="/usr/local/bin/bastille stop"
command=/usr/local/bin/${name}
start_cmd="bastille_start"
stop_cmd="bastille_stop"
restart_cmd="bastille_stop && bastille_start"

bastille_start()
{
Expand All @@ -38,7 +38,7 @@ bastille_start()

for _jail in ${bastille_list}; do
echo "Starting Bastille Jail: ${_jail}"
${start_command} ${_jail}
${command} start ${_jail}
done
}

Expand All @@ -53,8 +53,9 @@ bastille_stop()

for _jail in ${bastille_list}; do
echo "Stopping Bastille Jail: ${_jail}"
${stop_command} ${_jail}
${command} stop ${_jail}
done
}

load_rc_config ${name}
run_rc_command "$1"

0 comments on commit 46bfa62

Please sign in to comment.