Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Assuming your Linux distro uses some variant of the System V Init framework to run its services, you can use the rc.ofbiz script inside the root OFBiz installation dir"tools" folder of the home folder of OFBiz (or in the home folder itself for releases older than 12.04).  I HAVE NOT TESTED THIS SCRIPT.  In my own firm, we use our own custom-written script for various reasons.  But the rc.ofbiz script was written by David E. Jones so it is probably reasonable!   You may need to perform some of the commands below as root or via sudo, if you don't know what that means, please find out BEFORE you start hosting OFBiz on Linux!

...

2. Copy the rc.ofbiz script to the /etc/init.d directory, with the name ofbiz, so you end up with: /etc/init.d/ofbiz    .   For instance:

Code Block
cp /opt/ofbiz/tools/rc.ofbiz /etc/init.d/ofbiz

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<false/>
	<key>Label</key>
	<string>org.apache.ofbiz</string>
	<key>WorkingDirectory</key>
	<string>/Users/jaz/Sandbox/ofbiz</string>
	<key>ProgramArguments</key>
	<array>
		<string>./tools/startofbiz.sh</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

...