How to install Servoy server on Mac

Hi all,

I’ve tried to install the servoy application server on a mac.
The installation goes fine.
The problem comes with the daemons setup.
I’ve tried to create a new daemon:

#!/bin/sh
. /etc/rc.common
 
# The start subroutine
StartService() {
    # Insert your start command below.  For example:
 /Applications/Servoy/application_server/postgres_db/bin/pg_ctl -D /Applications/Servoy/application_server/database -l /Applications/Servoy/application_server/postgres_db/postgres_log.txt start
    # End example.
}
 
# The stop subroutine
StopService() {
    # Insert your stop command(s) below.  For example:
    /Applications/Servoy/application_server/postgres_db/bin/pg_ctl -D /Applications/Servoy/application_server/database -l /Applications/Servoy/application_server/postgres_db/postgres_log.txt stop
    # End example.
}
 
# The restart subroutine
RestartService() {
    # Insert your start command below.  For example:
   StopService() 
StartService()
    # End example.
}
 
RunService "$1"

But it doesn’t work. I don’t know if the syntax its correct.
If I run ```
/Applications/Servoy/application_server/postgres_db/bin/pg_ctl -D /Applications/Servoy/application_server/database -l /Applications/Servoy/application_server/postgres_db/postgres_log.txt start


I've done the folder, the .sh file and the .plist by myself because the link to the "armadillo" page is broken.
I've tried to follow the servoyguy guide:
<a class="postlink" href="http://www.servoyguy.com/knowledge_base/servoy_application_server/how_do_i_setup_servoy_application_server_to_startup_automa_1">http://www.servoyguy.com/knowledge_base ... p_automa_1</a>

Can anyone say me what I'm missing?
Does exist a step-by-step servoy installation guide for mac?

Thanks

Do you mean this link? https://www.macupdate.com/app/mac/17385/armadillo
I see the page is showing some html markup for some reason - but the href link works for me.

Edit: ah, sorry about that, actually the download links don’t work.

To create daemons you can try Lingon.

Hi,

Under what user are you trying to run PostgreSQL? If the daemon is launched as root PostgreSQL will quit because this is considered (very) bad practice.
Check the postgresql.log file to see what really the problem is.

Hope this helps.

Hi all!

Following your suggestion, I’ll solved the problem!

Thanks!