Hi Sajith, >From C5-m4 onwards carbon.sh file will reside in <runtime_home>/bin directory. Therefore no need to write a separate startup script for runtime. Based on the bin directory, the script will set the correct runtime from the script.
If you want, you can have a new script inside <server_home>/bin directory, which calls the relevant carbon.sh in the <runtime_home>/bin Thanks Thusitha On Fri, Sep 8, 2017 at 5:02 PM, SajithAR Ariyarathna <[email protected]> wrote: > Hi Thusitha, > > In C5 v5.2.0-m3, when we want to add a new runtime to a product (e.g. > adding dashboard runtime to Stream Processor product) what we did was, > - Installed the necessary features to that tuntime > - Added new startup scripts (dashboard.sh & dashboard.bat) for that runtime > > However with the C5 v5.2.0-alpha version, I noticed that the carbon.sh > script has been changed with bunch of new variables (including $RUNTIME). > My query is on how one should write startup scripts (e.g. dashboard.sh & > dashboard.bat) for a particular runtime in the v5.2.0-alpha version. > > Thanks. > > On Fri, Sep 8, 2017 at 4:16 PM, Thusitha Thilina Dayaratne < > [email protected]> wrote: > >> Hi Sajith, >> >> Why do you want to write a runtime specific script? >> >> Thanks >> Thusitha >> >> On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna <[email protected]> >> wrote: >> >>> Hi Kernel Team, >>> >>> $subject? >>> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh >>> startup script is replaced with $RUNTIME variable [1]. Do we need to pass >>> that as an argument in the runtime startup script? >>> >>> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/ >>> features/org.wso2.carbon.runtime.feature/resources/wso2/ >>> default/bin/carbon.sh#L285 >>> >>> Thanks. >>> >>> -- >>> Sajith Janaprasad Ariyarathna >>> Senior Software Engineer; WSO2, Inc.; http://wso2.com/ >>> <https://wso2.com/signature> >>> >> >> >> >> -- >> Thusitha Dayaratne >> WSO2 Inc. - lean . enterprise . middleware | wso2.com >> >> Mobile +94712756809 <+94%2071%20275%206809> >> Blog alokayasoya.blogspot.com >> About http://about.me/thusithathilina >> <http://wso2.com/signature> >> >> > > > -- > Sajith Janaprasad Ariyarathna > Senior Software Engineer; WSO2, Inc.; http://wso2.com/ > <https://wso2.com/signature> > -- Thusitha Dayaratne WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
