Servoy Startup Launcher Preferences

How are the Startup and Shutdown launchers meant to be used? I currently have a script that creates and starts local databases and another that shuts them down. I created Start-TestDatabases.bat to call the startup script and Stop-TestDatabases.bat to call the shutdown script. My assumption was that Servoy would run whatever file is specified in the “Startup launcher” field when opening the Servoy IDE and the specified file in the “Shutdown launcher” field when closing the Servoy IDE. However, this does not seem to be the case and so I was wondering if anyone knows the proper way to use this setting or if there is another way to execute scripts upon opening/closing the Servoy IDE. Thanks!

Are the files located in the application_server directory?

Yes (see screenshot).

i think that is just a wrong path
not sure where it ends up if you just have that see what we do by default:

nativeShutdownLauncher=%%user.dir%%/postgres_db/bin/pg_ctl|stop|-D|database|-l|postgres_db/postgres_log.txt
nativeStartupLauncher=%%user.dir%%/startpostgres.bat

I cannot specify my own scripts for these properties? I have a custom script that is meant to create and run local Progress (not PostgreSQL) databases and I was hoping to be able to run that script when opening Servoy so that I can connect to and use those local databases for creating and testing our unit tests. Rather than having actual hosted databases dedicated to unit testing.

If not, is this possible to do through any other settings/configuration?

do i say that you can’t use this?
I am just saying that you need to specify a good path by looking at what we are by default doing..
you seem to just have “start-testdatabase.bat”

thats it. what happens if you add there a full path that is correct to that file.

I see, I misunderstood. I thought I had tried that previously, however, it looks like I used back-slashes instead of forward-slashes in the file path. With forward-slashes it is now working.

Sorry about that and thank you for the correction.

1 Like