browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Filemaker Server 5.5 auto startup on OS X

Posted by on November 7, 2005

A script is needed for Filemaker Server 5.5 auto startup. Although this link gets you there, it starts up FM Server with root as the user so that FM Server config can’t access FM Server:


FM Server 5.5 startup script

To remedy this situation, in the FMPServer file, replace the code with this:

#!/bin/sh

. /etc/rc.common

##
# Start up FileMaker Pro Server
##

# path to FileMaker Server 5.5
FMS_PATH=”/FileMaker Server 5.5/FileMaker Server Config.app/Contents/Resources”
FMS_SERVER=”${FMS_PATH}/fmserverd”
# admin username
FMS_USER=”username”

StartService ()
{
if [ “${FMPSERVER:=-NO-}” = “-YES-” ]; then
ConsoleMessage “Starting FileMaker Server”
sudo -u ${FMS_USER} “${FMS_SERVER}” start -c “${FMS_PATH}”/fmserver.conf
fi
}

StopService ()
{
ConsoleMessage “Stopping FileMaker Server”
sudo -u ${FMS_USER} “${FMS_SERVER}” pause
sudo -u ${FMS_USER} “${FMS_SERVER}” close
sudo -u ${FMS_USER} “${FMS_SERVER}” stop
}

RestartService()
{

StopService
StartService
}

RunService “$1″