<div dir="ltr">Hi there,<div><br></div><div>I&#39;ve installed pgpool 4.1.2 and postgresql 12.3 with watchdog based on <a href="https://www.pgpool.net/docs/latest/en/html/example-cluster.html">https://www.pgpool.net/docs/latest/en/html/example-cluster.html</a>.</div><div>That is 3 machines with a VIP, pgpool service + watchdog service + postgresql service running on each of them, 1 primary + 2 standby postgresql.<br></div><div>The question is: is that possible to enable those services as auto started even if I reboot all of them?<br></div><div><br></div><div>I checked running services on them:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[root@primary ~]# systemctl status postgresql-12<br>postgresql-12.service - PostgreSQL 12 database server<br>   Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled)<br>   Active: active (running) since Thu 2020-07-02 22:17:35 CDT; 1 months 6 days ago<br>   <br>[root@secondary1 ~]# systemctl status postgresql-12<br>postgresql-12.service - PostgreSQL 12 database server<br>   Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled)<br>   Active: inactive (dead)<br>   <br>[root@secondary2 ~]# systemctl status postgresql-12<br>postgresql-12.service - PostgreSQL 12 database server<br>   Loaded: loaded (/usr/lib/systemd/system/postgresql-12.service; disabled; vendor preset: disabled)<br>   Active: inactive (dead)</blockquote><div><br></div><div>So the postgresql service on secondary 1 &amp; 2 is not started by postgresql service, they are triggered by pgpool with command like:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">/usr/pgsql-12/bin/postgres -D /var/lib/pgsql/12/data </blockquote><div>And on the primary the ps aux shows</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">/usr/pgsql-12/bin/postmaster -D /var/lib/pgsql/12/data/ </blockquote><div><br></div><div>Which means I can enable pgpool service on all 3 machines:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">systemctl enable pgpool </blockquote><div><br></div><div>But shouldn&#39;t do the same for postgresql service like systemctl enable postgresql-12.</div><div>Also I&#39;m not sure if enabling services to start automatically will lead to any issue.<br></div><div><br></div><div>Any suggestion or guidance about this is appreciated. I just want to make the DB system recover even after rebooting.</div><div><br></div><div>Thanks.</div><div> </div></div>