We now have Servoy Server configured and running on an Xserve. We’ve also made Marcel Trapman’s recommended modifications to the servoy_server.sh file in the Servoy directory, have created a /Library/StartupItems directory and added Marcel’s recommended files to it.
We’ve also tested the above by logging into the Terminal as “root” and dragging the servoy_server.sh file into the terminal. This action launches Servoy Server with zero errors.
However, what does not work is automatic startup of Servoy Server as a service when the Xserve is booted.
The file /Library/StartupItems/servoy_server/servoy_server appears to be identical with a similar file for Apache in /System/Library/StartupItems/Apache/Apache with this one exception: Get info on the two files (ours and Apache’s) show them to be of different file types. Apache’s Kind is “Unix executable” while ours (which started life as an edited copy of Apache’s) is a “Text Wrangler text file” (the editing tool we used.) Of course, the two icons are very different as well.
Intuitively I sense this may be the problem. Unclear how we can transform this file’s kind to Unix Executable.
This is the text I am referring to in the previously mentioned:
In /Library/StartupItems/ you create a folder named Servoy.
In that Servoy folder you create the following 2 files.
Owner of this folder and files is root.
The folder and the Servoy file have permission 755.
StartupParameters.plist has permission 644.
So you can set the permissions using sudo chmod 755 /Library/StartupItems/Servoy/
Set the correct permission for all 3 items (folder and 2 files).
Also make sure the owner is set correctly (see quote).