Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Stop EWBSRVR
Thu, Mar 31 2016 11:39 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

I have a batch file (see attchment) to start all my webservers in 1 command.

BUT HOW CAN I STOP THEM all in one batch file?

Paul.



Attachments: StartServers.bat
Thu, Mar 31 2016 12:03 PMPermanent Link

Uli Becker

Paul,

> BUT HOW CAN I STOP THEM all in one batch file?

I run my servers as services and use these commands to start/stop them:

net start ewbsrvr
net stop ewbsrvr

Uli
Fri, Apr 1 2016 10:42 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

I have a folder for each server that has to run (with in each folder the appropriate ini file).  So the batch file to start should bue as follows:

cd folder1
net start ewbsrvr1
cd folder2
net start ewbsrvr2
.
.
cd folder99
net start ewbsrvr99


And the batch file to stop should be:

cd folder1
net stop ewbsrvr1
cd folder2
net stop ewbsrvr2
.
.
cd folder99
net stop ewbsrvr99

Unfortunately this does not work.

The batch file in my first message works fine to start the servers (as application)




I run my servers as services and use these commands to start/stop them:

net start ewbsrvr
net stop ewbsrvr

Uli
Fri, Apr 1 2016 10:53 AMPermanent Link

Uli Becker

Paul,

> I have a folder for each server that has to run (with in each folder the appropriate ini file).  So the batch file to start should bue as follows:
>
> cd folder1
> net start ewbsrvr1
> cd folder2
> net start ewbsrvr2

No, that's not the way it works. Since you don't execute an application,
but start a service there is no need to navigate to any folder.

Each service has a unique name and can be started by calling net start
or net stop.

Uli
Fri, Apr 1 2016 11:46 AMPermanent Link

Uli Becker

Paul,

maybe a misunderstandig. The commands I posted work only with EWB Servers installed as a Service.

Uli
Fri, Apr 1 2016 11:53 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

I understand but I don't succeed to install the webserver as a service first by using the command

ewbsrvr.exe /install

And this has to be done first as I read in the manual.




No, that's not the way it works. Since you don't execute an application,
but start a service there is no need to navigate to any folder.

Each service has a unique name and can be started by calling net start
or net stop.

Uli
Fri, Apr 1 2016 12:00 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< I understand but I don't succeed to install the webserver as a service first by using the command >>

That command is for *installing* the service.  What Uli is referring to is starting and stopping a service.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Apr 1 2016 12:46 PMPermanent Link

Matthew Jones

<Paul Waegemans> wrote:
> I understand but I don't succeed to install the webserver as a service
> first by using the command
>
> ewbsrvr.exe /install
>
> And this has to be done first as I read in the manual.
>
>
>
>
> No, that's not the way it works. Since you don't execute an application,
> but start a service there is no need to navigate to any folder.
>
> Each service has a unique name and can be started by calling net start
> or net stop.
>
> Uli
>
>

If you mean that you get an error when you install, you need to run CMD as
an administrator to install services.

--
Matthew Jones
Image