# stop and deactivate postgresql
sudo launchctl unload /Library/LaunchDaemons/eu.flexibee.postgresql.plist
# start postgresql
sudo launchctl load -w /Library/LaunchDaemons/eu.flexibee.postgresql.plist
# stop and deactivate Flexi server
sudo launchctl unload /Library/LaunchDaemons/eu.flexibee.server.plist
# start Flexi server
sudo launchctl load -w /Library/LaunchDaemons/eu.flexibee.server.plist
# PostgreSQL log
/Library/Application\ Support/FlexiBee/Data/pg_log/startup.log
# Flexi server log
/var/log/flexibee.log
# reset postgresql transaction log (data loss may occur,
# use only as a solution for critical transaction log issues)
# for example when encountering the error "PANIC: could not locate a valid checkpoint record"
# postgresql must be stopped before running this command and restarted afterwards
sudo -u winstrom /Library/WinStrom-PostgreSQL/bin/pg_resetxlog /Library/Application\ Support/FlexiBee/Data/
