intra-mart Accel Platform / Setup Guide

Version 12 2014-08-01

«  6.2.1. Console Startup/Stop   ::   Contents   ::   7. WAR File Deployment  »

6.2.2. Registration/Deletion to Linux Daemon

6.2.2.1. Registration to Linux Daemon

Warning

It should be installed by the method described in intra-mart Accel Platform (Linux Version) Installation and Setting.
Moreover, it is necessary that the user who has root authority should execute the installation.
  • Please execute chkconfig command, and have it automatically started at the time of startup.
# chkconfig --add resin
  • Please execute chkconfig command. It is successful if the following is displayed.
# chkconfig --list resin
resin       0:off   1:off   2:off   3:on    4:on    5:on    6:off

6.2.2.1.1. In case multiple IP addresses are set.

If multiple IP addresses are set in the environment to be started, it is necessary to edit the resin script which is placed in /etc/init.d directory, and specify the system property [jgroups.bind_addr].
Environment variable is specified in line 25 or its vicinity. Please add the environment variable [ARGS], and add the system property.
JAVA_HOME="/usr/lib/jvm/java-7-sun"
RESIN_HOME="/usr/local/resin"
CONSOLE="/var/log/resin/console.log"
# Add System Property
ARGS="-Djgroups.bind_addr=192.168.1.1"

6.2.2.2. Deletion from Linux Daemon

  • Execute chkconfig command, and delete it.
# chkconfig --del resin
  • Please execute chkconfig command. It is successful if the following is displayed.
# chkconfig --list resin
  Service resin supports chkconfig, but it is not accessed at the execution level (run 'chkconfig --add resin').
  • Please delete /etc/init.d/resin as required.

6.2.2.3. Change of Execution User

Execution user of Resin that is started as Linux daemon may be changed by editing the resin script placed in /etc/init.d directory.
Environment variable is specified in line 25 or its vicinity. Please add the environment variable [USER], and specify Resin execution user.
It is necessary that the execution user should have been created in advance.
JAVA_HOME="/usr/lib/jvm/java-7-sun"
RESIN_HOME="/usr/local/resin"
CONSOLE="/var/log/resin/console.log"
# Add execution user
USER=imart

«  6.2.1. Console Startup/Stop   ::   Contents   ::   7. WAR File Deployment  »