Adding the missing ExecStop and ExecReload commands to the systemd
authorMuhammad Usama <m.usama@gmail.com>
Mon, 6 Feb 2017 14:41:31 +0000 (19:41 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Mon, 6 Feb 2017 14:41:31 +0000 (19:41 +0500)
service configuration file.

The patch was contributed by supp_k and enhanced by me.

src/redhat/pgpool.service

index 44ba8414c926e8f351e8339c5d4ab889f38e2487..21819315ec2305d551c1e98686ece166d77492b6 100644 (file)
@@ -1,10 +1,15 @@
 [Unit]
-Description=pgpool-II
+Description=Pgpool-II
 After=syslog.target network.target
 
 [Service]
+Type=forking
+
 EnvironmentFile=-/etc/sysconfig/pgpool
+
 ExecStart=/usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf $OPTS
+ExecStop=/usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf stop
+ExecReload=/usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf reload
 
 [Install]
 WantedBy=multi-user.target