Fix for 0000296: PGPool v3.6.2 terminated by systemd because the service Type
authorMuhammad Usama <m.usama@gmail.com>
Thu, 23 Mar 2017 21:17:36 +0000 (02:17 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Thu, 23 Mar 2017 21:21:39 +0000 (02:21 +0500)
commit1172e6cf83968fbbd97b306342ec238a275eeb4b
tree85afd4d75f70a1d01fdb7b94c5dd8b3baba71076
parent6d31a5e4c56baa230e1eaf812628f59fc0357b97
Fix for 0000296: PGPool v3.6.2 terminated by systemd because the service Type
has been set to 'forking'

Removing the "-n" value assigned to OPTS variable in pgpool.sysconfig.
The problem was the systemd service with Type=forking expects the parent process
to exit after the startup is complete, but because the -n command line option
disables the daemon mode and systemd keeps on waiting for the Pgpool-II's parent
process to exit after startup, which never happens and eventually systemd
terminate the Pgpool-II after timeout.
As part of this commit I have also added a new variable STOP_OPTS which is
passed to ExecStop and can be used to pass extra command line options to
Pgpool-II stop command.
src/redhat/pgpool.service
src/redhat/pgpool.sysconfig