Skip to content

Instantly share code, notes, and snippets.

@fsans
Last active December 13, 2023 18:30
Show Gist options
  • Save fsans/a93b197d42c4032bde50b647777fd5f7 to your computer and use it in GitHub Desktop.
Save fsans/a93b197d42c4032bde50b647777fd5f7 to your computer and use it in GitHub Desktop.
Disconnect all users from FileMaker Server shell script

Disconnect all users from FileMaker Server.

Save this shell script in /Library/FileMaker Server/Data/Scripts.

Execute as system script in any schedule when you need to free up the service for any task...

#!/bin/sh

# to be kind, send a message to warn connected users...

#/Library/FileMaker\ Server/Database\ Server/bin/fmsadmin -u admin -p verysecret send -m "will disconnect FileMaker services right now" -w0 -t5 -y

# then just kickoff everyone

/Library/FileMaker\ Server/Database\ Server/bin/fmsadmin -u admin -p verysecret disconnect client -m 'maintenance pause, sorry' -w0 -t5 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment