The file rc.ofbiz.for.debian generate some error because of the bash type contained in the first line.
!/bin/sh should be !/bin/bash
To add it in the startup process, it must contained a specific header :
### BEGIN INIT INFO
# Provides: Apache-OFBiz ERP software
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Apache-OFBiz
# Description: Apache-OFBiz ERP Software
### END INIT INFO
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614355 13f79535-47bb-0310-9956-ffa450edef68