SonicMQ as a service

You should be able to set is as a service IF you make provisions to use check for and remove the lock file.
I would start my using a bat file at startup.
If you find this works, you might look to step up to an advanced service controller like fire daemon.
You can set your service startup and run parameters. So, you can specify a bat to run first (to check and remove lock file) and then the startup parameters, if desired, all within the one service definition.
Also, it will monitor the service if you wish, so it will restart if terminated, etc...
Carey


To: vantage@yahoogroups.comFrom: jason@...: Tue, 1 Apr 2008 13:34:23 -0500Subject: RE: [Vantage] Re: SonicMQ as a service




Bill,When you start the Sonic MQ Container, it creates two lock files - I'mnot 100% where they are located, but I would take a stab that they arein the Sonic installed directory. Anyway, you will have to delete thesetwo files prior to starting the service.Why this happens? The Sonic window must be exited gracefully (i.e. hitCTRL-C on the open window). If someone presses the X on the window itwill not remove these files - probably why it will not work as aservice.Hope this helps.Jason ClaggettMicrosoft Small Business SpecialistMCP #38561592W Technologies, LLC312.533.4033 x8039jason@...: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On BehalfOf hoomail4meSent: Tuesday, April 01, 2008 1:45 PMTo: vantage@yahoogroups.comSubject: [Vantage] Re: SonicMQ as a serviceCan someone explain what this "lock file" is called and where it islocated?Thanks,Bill--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "JoeLuster" <jluster@...> wrote:>> Did you remember to delete the lock file? Also we tried to do thistoo,> but since it was a java app it is nearly impossible. > > > > Joe Luster> > Network Administrator> > Cold Jet, LLC> > 513-831-3211 ext. 308> > 513-831-1209 FAX> > <http://www.coldjet.com> > > > > ________________________________> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] OnBehalf> Of peterlv2002> Sent: Friday, November 30, 2007 10:24 AM> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> > Subject: [Vantage] SonicMQ as a service> > > > Has anyone had any success with making the SonicMQ 6.1 process run as> a service in Windows? I did add it as a service using srvanywhere> from the windows resource kit. My problem is that when I shut down or> reboot the server, the SonicMQ container is not closing properly such> that it will not start afterward. There must be something in th shut> down command syntax that is missing. Any Ideas?> > > > > > [Non-text portions of this message have been removed]>[Non-text portions of this message have been removed]






_________________________________________________________________
More immediate than e-mail? Get instant access with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008

[Non-text portions of this message have been removed]
Has anyone had any success with making the SonicMQ 6.1 process run as
a service in Windows? I did add it as a service using srvanywhere
from the windows resource kit. My problem is that when I shut down or
reboot the server, the SonicMQ container is not closing properly such
that it will not start afterward. There must be something in th shut
down command syntax that is missing. Any Ideas?
Did you remember to delete the lock file? Also we tried to do this too,
but since it was a java app it is nearly impossible.



Joe Luster

Network Administrator

Cold Jet, LLC

513-831-3211 ext. 308

513-831-1209 FAX

<http://www.coldjet.com>



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of peterlv2002
Sent: Friday, November 30, 2007 10:24 AM
To: vantage@yahoogroups.com
Subject: [Vantage] SonicMQ as a service



Has anyone had any success with making the SonicMQ 6.1 process run as
a service in Windows? I did add it as a service using srvanywhere
from the windows resource kit. My problem is that when I shut down or
reboot the server, the SonicMQ container is not closing properly such
that it will not start afterward. There must be something in th shut
down command syntax that is missing. Any Ideas?





[Non-text portions of this message have been removed]
I can manually clear the lock. We are using Customer Connect and
Supplier connect which use SonicMQ. If the server go down, these
processes do not work until someone logs in. What a pain!

--- In vantage@yahoogroups.com, "Joe Luster" <jluster@...> wrote:
>
> Did you remember to delete the lock file? Also we tried to do this too,
> but since it was a java app it is nearly impossible.
>
>
>
> Joe Luster
>
> Network Administrator
>
> Cold Jet, LLC
>
> 513-831-3211 ext. 308
>
> 513-831-1209 FAX
>
> <http://www.coldjet.com>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of peterlv2002
> Sent: Friday, November 30, 2007 10:24 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] SonicMQ as a service
>
>
>
> Has anyone had any success with making the SonicMQ 6.1 process run as
> a service in Windows? I did add it as a service using srvanywhere
> from the windows resource kit. My problem is that when I shut down or
> reboot the server, the SonicMQ container is not closing properly such
> that it will not start afterward. There must be something in th shut
> down command syntax that is missing. Any Ideas?
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Try putting SonicMQ container one in the startup and auto login the
server. Yes, it's a huge pain.



Joe Luster

Network Administrator

Cold Jet, LLC

513-831-3211 ext. 308

513-831-1209 FAX

<http://www.coldjet.com>



________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of peterlv2002
Sent: Friday, November 30, 2007 10:48 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: SonicMQ as a service



I can manually clear the lock. We are using Customer Connect and
Supplier connect which use SonicMQ. If the server go down, these
processes do not work until someone logs in. What a pain!

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Joe
Luster" <jluster@...> wrote:
>
> Did you remember to delete the lock file? Also we tried to do this
too,
> but since it was a java app it is nearly impossible.
>
>
>
> Joe Luster
>
> Network Administrator
>
> Cold Jet, LLC
>
> 513-831-3211 ext. 308
>
> 513-831-1209 FAX
>
> <http://www.coldjet.com <http://www.coldjet.com> >
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of peterlv2002
> Sent: Friday, November 30, 2007 10:24 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] SonicMQ as a service
>
>
>
> Has anyone had any success with making the SonicMQ 6.1 process run as
> a service in Windows? I did add it as a service using srvanywhere
> from the windows resource kit. My problem is that when I shut down or
> reboot the server, the SonicMQ container is not closing properly such
> that it will not start afterward. There must be something in th shut
> down command syntax that is missing. Any Ideas?
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
We've been able to do it here using the process described in Epicor's
Answerbook 8516MPS (just search for "sonic service"), but it's still
touchy. Rarely when we reboot the server, the service will just not
start. We can manually start it in those cases (which would seem to
indicate there's no lock and it shut down properly), but it just
decides not to start up automatically.

-Steve

--- In vantage@yahoogroups.com, "Joe Luster" <jluster@...> wrote:
>
> Try putting SonicMQ container one in the startup and auto login the
> server. Yes, it's a huge pain.
>
>
>
> Joe Luster
>
> Network Administrator
>
> Cold Jet, LLC
>
> 513-831-3211 ext. 308
>
> 513-831-1209 FAX
>
> <http://www.coldjet.com>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of peterlv2002
> Sent: Friday, November 30, 2007 10:48 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: SonicMQ as a service
>
>
>
> I can manually clear the lock. We are using Customer Connect and
> Supplier connect which use SonicMQ. If the server go down, these
> processes do not work until someone logs in. What a pain!
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Joe
> Luster" <jluster@> wrote:
> >
> > Did you remember to delete the lock file? Also we tried to do this
> too,
> > but since it was a java app it is nearly impossible.
> >
> >
> >
> > Joe Luster
> >
> > Network Administrator
> >
> > Cold Jet, LLC
> >
> > 513-831-3211 ext. 308
> >
> > 513-831-1209 FAX
> >
> > <http://www.coldjet.com <http://www.coldjet.com> >
> >
> >
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> > Of peterlv2002
> > Sent: Friday, November 30, 2007 10:24 AM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] SonicMQ as a service
> >
> >
> >
> > Has anyone had any success with making the SonicMQ 6.1 process run as
> > a service in Windows? I did add it as a service using srvanywhere
> > from the windows resource kit. My problem is that when I shut down or
> > reboot the server, the SonicMQ container is not closing properly such
> > that it will not start afterward. There must be something in th shut
> > down command syntax that is missing. Any Ideas?
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Thanks, the script was buggy, but it worked. Time will tell if this
solution work. Again thanks


--- In vantage@yahoogroups.com, "steve.thoms" <steve.thoms@...> wrote:
>
> We've been able to do it here using the process described in Epicor's
> Answerbook 8516MPS (just search for "sonic service"), but it's still
> touchy. Rarely when we reboot the server, the service will just not
> start. We can manually start it in those cases (which would seem to
> indicate there's no lock and it shut down properly), but it just
> decides not to start up automatically.
>
> -Steve
>
> --- In vantage@yahoogroups.com, "Joe Luster" <jluster@> wrote:
> >
> > Try putting SonicMQ container one in the startup and auto login the
> > server. Yes, it's a huge pain.
> >
> >
> >
> > Joe Luster
> >
> > Network Administrator
> >
> > Cold Jet, LLC
> >
> > 513-831-3211 ext. 308
> >
> > 513-831-1209 FAX
> >
> > <http://www.coldjet.com>
> >
> >
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
Behalf
> > Of peterlv2002
> > Sent: Friday, November 30, 2007 10:48 AM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Re: SonicMQ as a service
> >
> >
> >
> > I can manually clear the lock. We are using Customer Connect and
> > Supplier connect which use SonicMQ. If the server go down, these
> > processes do not work until someone logs in. What a pain!
> >
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
, "Joe
> > Luster" <jluster@> wrote:
> > >
> > > Did you remember to delete the lock file? Also we tried to do this
> > too,
> > > but since it was a java app it is nearly impossible.
> > >
> > >
> > >
> > > Joe Luster
> > >
> > > Network Administrator
> > >
> > > Cold Jet, LLC
> > >
> > > 513-831-3211 ext. 308
> > >
> > > 513-831-1209 FAX
> > >
> > > <http://www.coldjet.com <http://www.coldjet.com> >
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
] On
> > Behalf
> > > Of peterlv2002
> > > Sent: Friday, November 30, 2007 10:24 AM
> > > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > > Subject: [Vantage] SonicMQ as a service
> > >
> > >
> > >
> > > Has anyone had any success with making the SonicMQ 6.1 process
run as
> > > a service in Windows? I did add it as a service using srvanywhere
> > > from the windows resource kit. My problem is that when I shut
down or
> > > reboot the server, the SonicMQ container is not closing properly
such
> > > that it will not start afterward. There must be something in th shut
> > > down command syntax that is missing. Any Ideas?
> > >
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Can someone explain what this "lock file" is called and where it is
located?

Thanks,

Bill

--- In vantage@yahoogroups.com, "Joe Luster" <jluster@...> wrote:
>
> Did you remember to delete the lock file? Also we tried to do this too,
> but since it was a java app it is nearly impossible.
>
>
>
> Joe Luster
>
> Network Administrator
>
> Cold Jet, LLC
>
> 513-831-3211 ext. 308
>
> 513-831-1209 FAX
>
> <http://www.coldjet.com>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of peterlv2002
> Sent: Friday, November 30, 2007 10:24 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] SonicMQ as a service
>
>
>
> Has anyone had any success with making the SonicMQ 6.1 process run as
> a service in Windows? I did add it as a service using srvanywhere
> from the windows resource kit. My problem is that when I shut down or
> reboot the server, the SonicMQ container is not closing properly such
> that it will not start afterward. There must be something in th shut
> down command syntax that is missing. Any Ideas?
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Bill,



When you start the Sonic MQ Container, it creates two lock files - I'm
not 100% where they are located, but I would take a stab that they are
in the Sonic installed directory. Anyway, you will have to delete these
two files prior to starting the service.



Why this happens? The Sonic window must be exited gracefully (i.e. hit
CTRL-C on the open window). If someone presses the X on the window it
will not remove these files - probably why it will not work as a
service.



Hope this helps.



Jason Claggett

Microsoft Small Business Specialist

MCP #3856159

2W Technologies, LLC

312.533.4033 x8039

jason@...



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of hoomail4me
Sent: Tuesday, April 01, 2008 1:45 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: SonicMQ as a service



Can someone explain what this "lock file" is called and where it is
located?

Thanks,

Bill

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Joe
Luster" <jluster@...> wrote:
>
> Did you remember to delete the lock file? Also we tried to do this
too,
> but since it was a java app it is nearly impossible.
>
>
>
> Joe Luster
>
> Network Administrator
>
> Cold Jet, LLC
>
> 513-831-3211 ext. 308
>
> 513-831-1209 FAX
>
> <http://www.coldjet.com>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of peterlv2002
> Sent: Friday, November 30, 2007 10:24 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] SonicMQ as a service
>
>
>
> Has anyone had any success with making the SonicMQ 6.1 process run as
> a service in Windows? I did add it as a service using srvanywhere
> from the windows resource kit. My problem is that when I shut down or
> reboot the server, the SonicMQ container is not closing properly such
> that it will not start afterward. There must be something in th shut
> down command syntax that is missing. Any Ideas?
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
What are the name/s of the locked files?

Thanks,

Bill

--- In vantage@yahoogroups.com, "Jason Claggett" <jason@...> wrote:
>
> Bill,
>
>
>
> When you start the Sonic MQ Container, it creates two lock files - I'm
> not 100% where they are located, but I would take a stab that they are
> in the Sonic installed directory. Anyway, you will have to delete these
> two files prior to starting the service.
>
>
>
> Why this happens? The Sonic window must be exited gracefully (i.e. hit
> CTRL-C on the open window). If someone presses the X on the window it
> will not remove these files - probably why it will not work as a
> service.
>
>
>
> Hope this helps.
>
>
>
> Jason Claggett
>
> Microsoft Small Business Specialist
>
> MCP #3856159
>
> 2W Technologies, LLC
>
> 312.533.4033 x8039
>
> jason@...
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of hoomail4me
> Sent: Tuesday, April 01, 2008 1:45 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: SonicMQ as a service
>
>
>
> Can someone explain what this "lock file" is called and where it is
> located?
>
> Thanks,
>
> Bill
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Joe
> Luster" <jluster@> wrote:
> >
> > Did you remember to delete the lock file? Also we tried to do this
> too,
> > but since it was a java app it is nearly impossible.
> >
> >
> >
> > Joe Luster
> >
> > Network Administrator
> >
> > Cold Jet, LLC
> >
> > 513-831-3211 ext. 308
> >
> > 513-831-1209 FAX
> >
> > <http://www.coldjet.com>
> >
> >
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> > Of peterlv2002
> > Sent: Friday, November 30, 2007 10:24 AM
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] SonicMQ as a service
> >
> >
> >
> > Has anyone had any success with making the SonicMQ 6.1 process run as
> > a service in Windows? I did add it as a service using srvanywhere
> > from the windows resource kit. My problem is that when I shut down or
> > reboot the server, the SonicMQ container is not closing properly such
> > that it will not start afterward. There must be something in th shut
> > down command syntax that is missing. Any Ideas?
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
> What are the name/s of the locked files?
>

On my system, there is only one file:

C:\epicor\SonicMQ61\MQ6.1\Domain1\data\_MFSystem\lock

Mark W.