Versions Compared

Key

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

...

1. Create a linux user dedicated to run OFBiz (should NOT be root, for many good reasons that I will not go into here).  This user should have full permissions over OFBiz installation dir and its subdir (for simplicity, in fact you could tune this).  Your commands will be SOMETHING LIKE...

Code Block
useradd -m ofbiz
chown -R ofbiz /opt/ofbiz
chmod 700 /opt/ofbiz

...

For Debian based distrib use . /lib/lsb/init-functions as "Source function library" and replace "echo_*" by "echo * "

4. Give this script the correct permissions.  Here is a typical example.

...


5.  At this point, you should be able to test the script manually, via root or sudo.  If you execute the following command, OFBiz should stop (if it was already up), and then start again.  Bear in mind that this process can take between 10s and 3 minutes, depending on your macine!  If this command does not work, something is wrong, investigate the command output or OFBiz logs to find out what.

Code Block
/etc/init.d/ofbiz restart

...

6b. Now execute the following command as root 

Code Block
chkconfig --add ofbiz

...