[Pkg-postgresql-public] Bug#854215: [postgresql] Cleanup .service file (Restart=on-failure works?)
sophie at hemio.de
Sun Feb 5 06:58:43 UTC 2017
The default systemd unit file contains comments like
# restarting automatically will prevent "pg_ctlcluster ... stop" from
# (This should make pg_ctlcluster stop work, but doesn't:)
I enabled Restart=on-failure and I am able to stop and start the cluster
via systemd. Even on stable. So maybe this is outdated.
I enabled Restart=on-failure because 9.4+165+deb8u2 on stable, because
it started to have problems with systemd communication on first start
after system restarts, while working fine otherwise:
systemd: postgresql at 9.4-main.service start operation timed out.
So maybe it's not to bad to have a Restart=on-failure.
More information about the Pkg-postgresql-public