PostgreSQL Reconnect

Posted on
Sat Mar 30, 2013 9:17 am
vtmikel offline
Posts: 646
Joined: Aug 31, 2012
Location: Boston, MA

PostgreSQL Reconnect

I started logging to PostgreSQL and noticed that it disconnects nightly when my computer sleeps for a few hours. Any suggestions on resetting the plugin when it receives broken pipe errors?

Thanks in advance.

Posted on
Tue Apr 02, 2013 7:58 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: PostgreSQL Reconnect

If you know when your Mac is going to wake, then you can create an Indigo schedule that executes a script action that does:

Code: Select all
pluginId = "com.perceptiveautomation.indigoplugin.sql-logger"
plugin = indigo.server.getPlugin(pluginId)
plugin.restart()

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests