pgagent: Add v18 unit file
authorDevrim Gunduz <devrim@gunduz.org>
Sun, 21 Sep 2025 15:08:19 +0000 (10:08 -0500)
committerDevrim Gunduz <devrim@gunduz.org>
Sun, 21 Sep 2025 15:08:19 +0000 (10:08 -0500)
rpm/redhat/main/non-common/pgagent/EL-10/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/EL-8/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/EL-9/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/F-41/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/F-42/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/F-43/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/SLES-15/pgagent-18.service [new symlink]
rpm/redhat/main/non-common/pgagent/main/pgagent-18.service [new file with mode: 0644]

diff --git a/rpm/redhat/main/non-common/pgagent/EL-10/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/EL-10/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/EL-8/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/EL-8/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/EL-9/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/EL-9/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/F-41/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/F-41/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/F-42/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/F-42/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/F-43/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/F-43/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/SLES-15/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/SLES-15/pgagent-18.service
new file mode 120000 (symlink)
index 0000000..f100b79
--- /dev/null
@@ -0,0 +1 @@
+../main/pgagent-18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgagent/main/pgagent-18.service b/rpm/redhat/main/non-common/pgagent/main/pgagent-18.service
new file mode 100644 (file)
index 0000000..10d52f7
--- /dev/null
@@ -0,0 +1,40 @@
+# It's not recommended to modify this file in-place, because it will be
+# overwritten during package upgrades.  It is recommended to use systemd
+# "dropin" feature;  i.e. create file with suffix .conf under
+# /etc/systemd/system/pgagent-18.service.d directory overriding the
+# unit's defaults. You can also use "systemctl edit pgagent-18"
+# Look at systemd.unit(5) manual page for more info.
+
+[Unit]
+Description=PgAgent for PostgreSQL 18
+After=syslog.target
+After=network.target
+
+[Service]
+Type=forking
+
+User=pgagent
+Group=pgagent
+
+# Location of the configuration file
+EnvironmentFile=/etc/pgagent/pgagent_18.conf
+
+# Where to send early-startup messages from the server (before the logging
+# options of pgagent.conf take effect)
+# This is normally controlled by the global default set by systemd
+# StandardOutput=syslog
+
+# Disable OOM kill on the postmaster
+OOMScoreAdjust=-1000
+
+ExecStart=/usr/bin/pgagent_18 -s ${LOGFILE} hostaddr=${DBHOST} dbname=${DBNAME} user=${DBUSER} port=${DBPORT}
+KillMode=mixed
+KillSignal=SIGINT
+
+Restart=on-failure
+
+# Give a reasonable amount of time for the server to start up/shut down
+TimeoutSec=300
+
+[Install]
+WantedBy=multi-user.target