The init script for resin uses a few bashisms that don't allow its use with FreeBSD's base shell, used by Baselayout 2. The attached patch fixes the init script by replacing the [[ ]] tests with [ ] tests, and also removes the "function" keyword that is unneeded and not supported by FreeBSD's sh. HTH, Diego
Created attachment 120186 [details, diff] Init script patch
Thanks for the patch, I've fixed init.d script for 3.0.x too.