Description
The karaf script used to use #/bin/sh, but changed to #!/bin/bash, which on FreeBSD doesn't work, as bash is located in /usr/local/bin/bash
According to
http://superuser.com/questions/1133187/when-must-i-use-bin-bash-and-when-bin-sh
It is better to use the environment to find the correct bash, by using
#!/usr/bin/env bash
which indeed works fine on FreeBSD.