I just moved FileMaker Server from a MacOS 9 box, to a new server (XServe... very nice), and was surprized that there was no provision for automatically starting the FMP Server at boot-up, so I rolled my own using a StartupItem.
Read the rest of the hint for the how-to...
{
Description = "FileMaker Server";
Provides = ("FileMaker Databases");
Requires = ("Resolver");
Uses = ("Network Time");
Preference = "None";
Messages =
{
start = "Starting FileMaker Server";
stop = "Stopping FileMaker Server";
restart = "Restarting FileMaker Server";
};
}
#!/bin/bash
. /etc/rc.common
FMSLOCATION='/Applications/FileMaker Server 5.5/FileMaker Server Config.app/Contents/Resources'
SERVERUSER='admin'
StartService ()
{
ConsoleMessage "Starting FileMaker Server"
sudo -u $SERVERUSER "$FMSLOCATION"/fmserverd START -c "$FMSLOCATION"/fmserver.conf
}
StopService ()
{
ConsoleMessage "Stopping FileMaker Server"
sudo -u $SERVERUSER "$FMSLOCATION"/fmserverd STOP
killall -1 fmserverd 2> /dev/null
}
RestartService ()
{
ConsoleMessage "Restarting FileMaker Server"
sudo -u $SERVERUSER "$FMSLOCATION"/fmserverd STOP
sudo -u $SERVERUSER "$FMSLOCATION"/fmserverd START -c "$FMSLOCATION"/fmserver.conf
}
RunService "$1"
sudo chmod -r 755 /Library/StartupItems/FileMakerProvide your password when asked.
sudo /Lilbrary/StartupItems/FileMaker/FileMaker startTo test stopping the server, just replace start in the above command with stop.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20031215140504888