|
From: Christian M. <chr...@ta...> - 2013-01-16 10:27:36
|
Hello Geoff,
I'm not sure, I understood 100%, so could you please explain a bit more
what you are trying to do?
You can specify an absolute path to the conf file in the windows batch
files using the _WRAPPER_CONF or _WRAPPER_CONF_DEFAULT variables at the
head of the batch files, e.g.:
_WRAPPER_CONF_DEFAULT=C:\MyApp\conf\myapp.conf
In the windows batch The batch file and the wrapper.exe file have to be in
the same directory, so are you referring that you want to keep the batch
files and the wrapper.exe files in different locations?
If so, with the current batch files, I think you have to change the area
below the "do not modify" section :)
Simply move the line "set _REALPATH=%~dp0" up above the "do not modify"
section and change it to the following:
set _REALPATH=C:\MyApp\bin\
Hope this information helps you out.
Please let me know if you have any further questions.
Thank you,
Christian Mueller
Tanuki Software, Ltd.
On Tue, Jan 15, 2013 at 6:38 PM, <geo...@rb...> wrote:
> **
> This is a question about the run & install scripts for TanukiSoft.
>
> Currently the default scripts for Windows that are supplied always find
> the wrapper executable in a relative path to the current directory (see
> _WRAPPER_BASE, _WRAPPER_L_EXE and _REALPATH).
>
> As we have many 10s of services running on all our servers we only want
> one copy of TanukiSoft (and other third-party software used by the service)
> so we can upgrade them all at the same time. Having a copy of TanukiSoft in
> each service install is a versioning nightmare.
>
> This means that the wrapper configuration files for Windows services end
> up with a convoluted WRAPPER_BASE, something that starts with a load of
> "../../.." etc.
>
> It gets more complex as we run a mixture of Windows, Solaris and Linux
> boxes as he Unix boxes DO support an absolute path to the wrapper.
>
> Whilst we've got this working OK I do feel it's a bit messy.
>
> We don't want to start messing with the default scripts provided by
> TanukiSoft - rem Do not modify anything beyond this point :) - if we can
> help it.
>
> Would it be possible in a future release to support absolute paths in
> Windows as you do in Unix?
>
> Maybe the Windows scripts could detect a "\\" at start or ":" in second
> character?
>
> ***********************************************************************************
>
> The Royal Bank of Scotland plc. Registered in Scotland No 90312.
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
> Authorised and regulated by the Financial Services Authority. The
> Royal Bank of Scotland N.V. is authorised and regulated by the
> De Nederlandsche Bank and has its seat at Amsterdam, the
> Netherlands, and is registered in the Commercial Register under
> number 33002587. Registered Office: Gustav Mahlerlaan 350,
> Amsterdam, The Netherlands. The Royal Bank of Scotland N.V. and
> The Royal Bank of Scotland plc are authorised to act as agent for each
> other in certain jurisdictions.
>
> This e-mail message is confidential and for use by the addressee only.
> If the message is received by anyone other than the addressee, please
> return the message to the sender by replying to it and then delete the
> message from your computer. Internet e-mails are not necessarily
> secure. The Royal Bank of Scotland plc and The Royal Bank of Scotland
> N.V. including its affiliates ("RBS group") does not accept responsibility
> for changes made to this message after it was sent. For the protection
> of RBS group and its clients and customers, and in compliance with
> regulatory requirements, the contents of both incoming and outgoing
> e-mail communications, which could include proprietary information and
> Non-Public Personal Information, may be read by authorised persons
> within RBS group other than the intended recipient(s).
>
> Whilst all reasonable care has been taken to avoid the transmission of
> viruses, it is the responsibility of the recipient to ensure that the
> onward
> transmission, opening or use of this message and any attachments will
> not adversely affect its systems or data. No responsibility is accepted
> by the RBS group in this regard and the recipient should carry out such
> virus and other checks as it considers appropriate.
>
> Visit our website at www.rbs.com
>
> ***********************************************************************************
>
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|