Home Forums OS X Server and Client Discussion Misc. Question abt a FileMaker Server article in afp548

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #361397
    Sensei
    Participant

    I read about how to start the FileMaker Server daemon at https://www.afp548.com/articles/system/fmpserver.html , implemented it, and it works well. My question is, how can I *stop* the fmserverd services (without using the FileMaker Server Config.app)? Any suggestions greatly appreciated.

    #361400
    Overrider
    Participant

    Hi,

    i made a little shell script which can do this. just copy and paste it into a texteditor and save it as scriptname.sh . then you can execute this via the terminal using sh scriptname.sh .

    [CODE]
    #!/bin/bash
    OPTIONS="STOP START LIST 0200 REBOOT EXIT"
    FMSLOCATION=/FileMaker\ Server\ 5.5/Filemaker\ Server\ Config.app/Contents/Resources/

    select opt in $OPTIONS; do

    if [ "$opt" = "STOP" ]; then
    echo Forcing the Server to stop…
    "$FMSLOCATION"/fmserverd STOP

    elif [ "$opt" = "START" ]; then
    echo Starting the Server…
    "$FMSLOCATION"/fmserverd START

    elif [ "$opt" = "LIST" ]; then
    echo Listing served Files…
    "$FMSLOCATION"/fmserverd FILES

    elif [ "$opt" = "0200" ]; then
    echo Replacing current Copy with 0200 backup…
    ditto /Volumes/Fmpbackup/0200/ /Volumes/Fmpserver/FileMaker\ Server\ 5.5/

    elif [ "$opt" = "REBOOT" ]; then
    echo Rebooting the Computer…
    sudo reboot

    elif [ "$opt" = "EXIT" ]; then
    echo see you next time…
    exit

    else
    clear
    echo couldnt understand that command…
    fi
    done
    [/CODE]

    make sure you change the $fmslocation to the same path as your filemaker server application. make sure you run this script with enough privileges. if it doesnt work at all fo some reason, i assume it is cause the format fuc*** up when i posted it here and you have some space character in there somewhere. just let me know and i will send you a zip file with the script.

    regards,

    Overrider

    #361425
    Overrider
    Participant

    well it depends on how often you need to use this. the main reason i had to make this script was that sometimes i was on the road and people from the office called me and said the filemaker was gone. without the possibility to access a computer i reverted to my p900 mobile phone which has a ssh programm on it to log into my server. typing the long string of commands is painfull when dome from a p900 onscreen keyboard, instead my login i use auto opens the script and i only have to press a number.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed