Linuxbrew, install postgres and start service automatically
<p>I install Postgresql on my Ubuntu with:</p>

<p><code>brew install postgres</code></p>

<p>now I have:</p>

<pre><code>psql --version
psql (PostgreSQL) 9.5.0
</code></pre>

<p>How can I start the service automatically?</p>

<p>On my Mac with homebrew I can do it with:</p>

<pre><code>ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
</code></pre>

<p>but how on Ubuntu with Linuxbrew?</p>

<p>I try with:</p>

<p><code>brew services start postgresql</code></p>

<p>but it says:</p>

<pre><code>sh: 1: list: not found
Error: Could not read the plist for `postgresql`!
</code></pre>

<p>What to do?</p>