Content Summary:
Copy the resin-version/contrib/init.resin.in to the/etc/rc.d/init.d/resin. Modify some of the settings in RESIN: Java_home resin_home USER. Use/sbin/chkconfig resin on to set the resin service to start at startup level 345. When booting on a slow CPU machine, you need to add a 15-second delay to help Java boot. My favorite way to set up a service automatically starts is to add a script similar to the one in rc.local:
#sshd
/usr/local/sbin/sshd
#proftpd
/usr/local/sbin/proftpd
#apache
/home/apache /bin/apachectl start
#mysql
/home/mysql/bin/safe_mysqld--port=3306 &
#start oracle8i Listener-
su-oracle-c ' lsnrctl start '
#start oracle8i
su-oracle-c ' Dbstart '
However, when the configuration resin automatically started, it was a lot of trouble, mainly java_home and other environment variables in the system initialization process is not read. Some information http://www.caucho.com/support/resin-interest/0112/0151.html that the following steps are required to configure resin as a configurable service:
After the JAVA_HOME environment variable is set, the resin is extracted to the/home/resin, and the compilation script is executed:
%tar zxf resin-version.tar.gz
#mv resin-version/home/resin
%cd/home/resin/
%./configure
%mak E
#make Install
Copy the $resin_home/contrib/init.resin generated by make install to/etc/rc.d/init.d/resin and:
chmod +x resin
cp contrib/init.resin/etc/rc.d/init.d/resin
chmod +x/etc/rc.d/init.d/resin