# How to start Servoy Server when Windows Starts up

**URL:** <https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035>\
**Category:** Classic Servoy\
**Created:** [October 15, 2010, 9:20am UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035 "2010-10-15T09:20:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [October 15, 2010, 9:20am UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/1 "2010-10-15T09:20:00Z")

</div>

Hi,

Could anyone tell me how to start Servoy Server when windows starts up. I mean like a service does.

I´m talking about a Win2008 Server.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [October 15, 2010, 10:13am UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/2 "2010-10-15T10:13:20Z")

</div>

Did you install Servoy with the ‘install service’ option checked?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [October 15, 2010, 10:19am UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/3 "2010-10-15T10:19:53Z")

</div>

Juan,

in the application\_server folder you will find a folder: services  
(if you don’t have that folder, you did’nt selected that in the installer. Just run the installer somewhere with that option selected, on your local machine, and copy over the that folder, to your windows server!)  
there you have bat file named uninstall\_windows\_service.bat

duplicate that one and call it install\_windows\_service:  
and change the bat file to this:

```auto
cd..
"%CD%\service\Wrapper.exe" -i "%CD%\service\wrapper.conf"

```

ofcourse the wrapper.conf is involved here:  
there are a few lines that you need to check for fixed folder path’s

```auto
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=D:\Servoy\Servoy5\application_server\service

# Java Additional Parameters
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-Duser.dir="D:\Servoy\Servoy5\application_server"
wrapper.java.additional.3=-XX:MaxPermSize=128m

```

Also in the same file, you can choose a service name you want:

```auto
# ********************************************************************
# Wrapper NT Service Properties
# ********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.

# Name of the service
wrapper.ntservice.name=MyService

# Display name of the service
wrapper.ntservice.displayname=MyWonderFull Application Server

# Description of the service
wrapper.ntservice.description=MyWonderFull Application Server

# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=

# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START

# Priority at which the service is run. NORMAL, LOW, HIGH, or
# REALTIME
wrapper.ntservice.process_priority=NORMAL

# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false

```

if the settings are correct run the bat file: install\_windows\_server.bat  
that will create the services for the Servoy Server

---

<div class="post-metadata">

**Author:** ![victor.rojo](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@victor.rojo](https://forum.servoy.com/u/victor.rojo)\
**Post date:** [October 15, 2010, 1:08pm UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/4 "2010-10-15T13:08:02Z")

</div>

Hi,

and don´t forget the [Patrick’s tip](http://forum.servoy.com/viewtopic.php?f=5&t=14613#p79371) to add a service dependency (for wait for the db service).

---

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [October 15, 2010, 7:53pm UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/5 "2010-10-15T19:53:17Z")

</div>

Hi Victor I have tried to follow Patrick´s tip, but when registering the postgre service I get the error 1057. I have run command window as an administrator

Here is the command I´m using: pg\_ctl register -N PostgreServoy -U DBA -P DBA -D \servoy\application\_server\database -l \servot\application\_server\postgres\_db\postgres\_log.txt

The paths are the same I´m using.

Any clue?

Thanks.

---

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [October 15, 2010, 7:54pm UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/6 "2010-10-15T19:54:39Z")

</div>

Thanks Harjo.

I will try your instructions but I´m having troubles registering postgreSQL service.

Will let you know as soon as I solve the DB problem.

---

<div class="post-metadata">

**Author:** ![victor.rojo](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@victor.rojo](https://forum.servoy.com/u/victor.rojo)\
**Post date:** [October 18, 2010, 6:56am UTC](https://forum.servoy.com/t/how-to-start-servoy-server-when-windows-starts-up/13035/7 "2010-10-18T06:56:35Z")

</div>

> jasantana:  
> when registering the postgre service I get the error 1057

It’s the ERROR\_INVALID\_SERVICE\_ACCOUNT, so the account name is invalid or the password is invalid for the account name
