Starting and stopping a DocMoto server
The DocMoto server runs as process "docmotoserver" which can be controlled from the systems preferences.
The process is started automatically whenever the base computer is started.
To start or stop the DocMoto server go to "System Preferences", "Other" and select "DocMoto Server".
Restarting, starting and stopping PostgreSQL
Occassionally it may be necessary to restart the PostgreSQL database. For OS X based DocMoto servers the following procedure can be adopted.
Open terminal and ensure you are logged in as user postgres by typing the following
sudo -s # Ensure you are a super user su postgres # Switch to postgres user
Navigate to your PostgreSQL "bin" directory, which is usually as follows:
cd /Library/PostgreSQL/9.1/bin/ # Change 9.1 to the appropriate postgres version number
To restart using pg_ctl by issuing the following command:
./pg_ctl restart -D /Library/PostgreSQL/9.1/data/ -m fast # forces safe instant restart
To start issue the following command:
./pg_ctl start -D /Library/PostgreSQL/9.1/data/
To stop issue the following command:
./pg_ctl stop -D /Library/PostgreSQL/9.1/data/ -m fast