In the init.sh[1] there are condition for CentOS. AFAIU CentOS specific things handle through this.Why we are using separate init.sh for CentOS. What is the difference of those two init.sh?
https://github.com/apache/stratos/blob/master/tools/init-scripts/init.sh Thanks, Gayan On Fri, May 22, 2015 at 3:14 PM, Udara Liyanage <ud...@wso2.com> wrote: > > I just wrote the last sentence in a different manner since we not > necessarily need to mention who writes the scripts. Please pick the best > one. > On Fri, May 22, 2015 at 3:07 PM, Mariangela Hills <mariang...@wso2.com> > wrote: > >> Hi Devs, >> >> For the purpose of greater clarity, I added the following as a separate >> note, so that the user does not miss it. >> >> "The init.sh and config.sh files are OS specific. Stratos ships config.sh for >> Debian/Ubuntu and CentOS operating systems. While, Stratos ships init.sh for >> Debian/Ubuntu. These scripts are accessible in the >> <STRATOS_SOURCE_HOME>/tools/init-scripts/ directory. *Note that DevOps >> will have to write their own script for any other operating system. "* >> The init scripts have to be customized for any other operation system. >> > >> >> Regards, >> Mariangela >> >> >> >> >> *--* >> *Mariangela Hills* >> PMC Member & Committer of Apache Stratos >> Senior Technical Writer >> WSO2, Inc. >> lean.enterprise.middleware. >> m: +94 773 500185 >> w: http://wso2.com >> <http://wso2.com/events/> >> >> On Fri, May 22, 2015 at 10:15 AM, Rajkumar Rajaratnam <rajkum...@wso2.com >> > wrote: >> >>> Thanks Isuru for pointing this out! >>> >>> Stratos ships init.sh for Centos as well. It is there at >>> https://github.com/apache/stratos/tree/master/tools/init-scripts/centos. >>> >>> Thanks. >>> >>> On Fri, May 22, 2015 at 10:10 AM, Isuru Haththotuwa <isu...@apache.org> >>> wrote: >>> >>>> >>>> >>>> On Fri, May 22, 2015 at 10:08 AM, Rajkumar Rajaratnam < >>>> rajkum...@wso2.com> wrote: >>>> >>>>> Hi David, >>>>> >>>>> Setup scripts (config.sh and init.sh) are OS specific. Stratos ships >>>>> config.sh for Debian/Ubuntu operating systems. DevOps will have to write >>>>> their own script for any other operating system. >>>>> >>>>> Please refer [1] for more details. >>>>> >>>>> @Mari, [1] is from 4.0.0. Where do we have these information for 4.1.0? >>>>> >>>> >>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Cartridge#id-4.1.0Cartridge-Genericcartridge >>>> >>>>> >>>>> 1. >>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cartridge#id-4.0.0Cartridge-Genericcartridge >>>>> >>>>> Thanks. >>>>> >>>>> On Fri, May 22, 2015 at 3:20 AM, david hbase <davidhb...@gmail.com> >>>>> wrote: >>>>> >>>>>> Try deploy tomcat cartridge with RHEL 6.5, the init script from: >>>>>> https://github.com/apache/stratos/tree/master/tools/init-scripts >>>>>> >>>>>> Run ./config.sh andgot the following errors: >>>>>> >>>>>> Error: Could not find command 'apt-get' >>>>>> Error: /Stage[main]/Stratos_base/Exec[base-update-apt]/returns: >>>>>> change from notrun to 0 failed: Could not find command 'apt-get' >>>>>> >>>>>> Looks like the Python cartridge is designed for ubuntu only? not >>>>>> sure, Please confirm >>>>>> >>>>>> Thanks >>>>>> -D >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Rajkumar Rajaratnam >>>>> Committer & PMC Member, Apache Stratos >>>>> Software Engineer, WSO2 >>>>> >>>>> Mobile : +94777568639 >>>>> Blog : rajkumarr.com >>>>> >>>>> -- >>>>> <http://rajkumarr.com> >>>>> <http://rajkumarr.com> >>>>> Thanks and Regards, >>>>> >>>>> Isuru H. >>>>> <http://rajkumarr.com> >>>>> +94 716 358 048 <http://rajkumarr.com>* <http://wso2.com/>* >>>>> >>>>> >>>>> * <http://wso2.com/>* >>>>> >>>>> >>>>> >>> >>> >>> -- >>> Rajkumar Rajaratnam >>> Committer & PMC Member, Apache Stratos >>> Software Engineer, WSO2 >>> >>> Mobile : +94777568639 >>> Blog : rajkumarr.com >>> >> >> > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985