Resin services are automatically started on the Gnu/linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.