How to start FMS via command line in Ubuntu
FMS version 22.0.6.600 on Ubuntu 24.04.4 LTS
I'd love to know the correct command to start Filemaker Server via the command line, so I can weave it into a Bash script like the following, which shuts it down cleanly.
Rebooting the system works, but there must be an easier way!
TIA
#!/usr/bin/bash
# Load credentials from secure file
source ~/.fms_credentials
echo "=== Disconnecting clients ==="
/usr/bin/fmsadmin -u "$FMS_USER" -p "$FMS_PASS" disconnect client -y
echo "=== Closing FileMaker Server ==="
/usr/bin/fmsadmin -u "$FMS_USER" -p "$FMS_PASS" close -y
echo "=== Stopping server ==="
/usr/bin/fmsadmin -u "$FMS_USER" -p "$FMS_PASS" -y -t 300 stop server
echo "All operations completed."