>> A suggestion to davide would altering this behaviour to read from a
key corresponding to the name of the service >> executable (involves
renaming the binary before --install) or from the service name it is
being started as. so >> different GNU keys could be used.
HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail1
>> HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail2

That would be great if possible in my opinion!


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Newsmirror
Sent: 14 May 2003 16:49
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Running multiple instances of Xmail




----- Original Message ----- 
From: "Davide Libenzi" <[EMAIL PROTECTED]>
Newsgroups: saltstorm.xmail
Sent: Wednesday, May 14, 2003 5:19 PM
Subject: [xmail] Re: Running multiple instances of Xmail


> 
> On Wed, 14 May 2003, Alex Young wrote:
> 
> >
> > I tried to install it as a separate service and got this error 
> > message
> > back:
> >
> > D:\xmail\newletters\MailRoot\bin>XMail_newsletter --install 
> > CreateService failed - The specified service already exists. (0x431)
> >
> > Any idea how I can change the service name without recompiling the 
> > source code?
> 
> You can't because XMail registers itself with a name ( XMail ) that 
> will result duplicate for the Windows service control manager.

you should be able to change the service name in the win registry after
the service been installed. then say you get xmail1, xmail2 services.
effectively :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XMail1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XMail2

But having a separate MAIL_CMD_LINE key for each service may not be
possible, as i figure xmail is hardcoded to read from:
HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail

You might have success giving xmail different commandline args by
modifying the "ImagePath" path key for each of the service ( -Sp 25
versus -Sp 1025)

A suggestion to davide would altering this behavior to read from a key
corresponding to the name of the service executable (involves renaming
the binary before --install) or from the service name it is being
started as. so different GNU keys could be used.
HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail1
HKEY_LOCAL_MACHINE\SOFTWARE\GNU\XMail2


/thomas.

> 
> - Davide
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in 
> the body of a message to [EMAIL PROTECTED] For general help: 
> send the line "help" in the body of a message to 
> [EMAIL PROTECTED]
> 
> 
> 
> --
>
------------------------------------------------------------------------
----
> XMail::Scope::nntpfwd v1.00  |  2003-05-14 15:14:16Z
> <nntp://news.saltstorm.net/saltstorm.xmail/8853>
-
To unsubscribe from this list: send the line "unsubscribe xmail" in the
body of a message to [EMAIL PROTECTED] For general help: send the
line "help" in the body of a message to [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to