Home › Forums › OS X Server and Client Discussion › Misc. › Question abt a FileMaker Server article in afp548
- This topic has 2 replies, 2 voices, and was last updated 21 years, 6 months ago by
Overrider.
-
AuthorPosts
-
April 22, 2005 at 12:41 am #361397
Sensei
ParticipantI 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.
April 22, 2005 at 6:05 am #361400Overrider
ParticipantHi,
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 .
#!/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 donemake 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
April 25, 2005 at 3:40 am #361425Overrider
Participantwell 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.
-
AuthorPosts
- You must be logged in to reply to this topic.