Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGOFp-0005G5-1P for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 26 Jul 2022 17:21:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oGOFn-0003pv-Tp for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 26 Jul 2022 17:21:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGOFn-0003pD-Jm for pgsql-pkg-debian@lists.postgresql.org; Tue, 26 Jul 2022 17:21:55 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oGOFk-0000YP-Hy for pgsql-pkg-debian@postgresql.org; Tue, 26 Jul 2022 17:21:55 +0000 Received: by mail-ej1-x636.google.com with SMTP id ss3so27274565ejc.11 for ; Tue, 26 Jul 2022 10:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seiler-us.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=bz5SHM/DdGey3to+1PFqiMmgDnRGcZ6FqeIp/0XmosI=; b=8LgmRkDXB7EKkS49onRUdC3v4Kb38hBbBdCMaPnhWtLptdOC9H1t12cJ1N2fYZIBxi TKXWIszD70qkzqOJT+X3uo0NFNpvRbW0pEoEKI4sBHXdeBrVOVEdcdFZRWqe2woJUmM4 6Cxj59O4SPv2o1dbPPtLZusbNmtTAWb4OnNd78zHVh2uiWsZPoIKjriO7u01H74TfJT7 qsky5pogkftdDVb9mylOhuLdwUiImTR/Kb21Y7APxOGZYF9/YgSFOPj8e1WOcbqOqCAm nk3WELDxSAd5bEZ+/UvL35emB4fXQa53u98YfyV/5yRgLMZL7Zst+fAy2g16JrEqoWAo QSnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=bz5SHM/DdGey3to+1PFqiMmgDnRGcZ6FqeIp/0XmosI=; b=YXJ3tqJBP9JMFocsPKC4XCmja0cIRvrSWIZ+UQGTv4dFR8NhnKu9OkNatjFGzSHDkd IOliCNJIePDls/TtpWMCSGVkeWHSHoaJF21YyW+mabUetBDfhAfUCtC7T7vrXjaDZz/P UulDHFQBGaR5ULEz3IAMLD/xiu1hkCeky0BDugsmNHJeGAQMr0HWlkS68sROXNkxrx42 0XGQliJVunUqYk4BY6hK62WEyMo+jeGwjpL1dqHXbmX7uVcUzt3EEkd4DsynDFYdi/c2 ILeaqnRzf6D2W8wRufAEiekT9uS0+xMqENETbFznnrnGjvyXNSiM9STBmja4QUkOzO13 Lmkw== X-Gm-Message-State: AJIora/G1nR6w0gepMntiJtADg+8zCqod1OP4WcZt2FVj6nDpqSTXYG9 ylgrnOs2qfy4sHdeh5wqN/g0LCi7WdYzMG9mjs/Kbz8XZXC0aA== X-Google-Smtp-Source: AGRyM1sSWfhh4826DPTS896PSMvLTAIcqvhiZ3UwiVX3u4YUxtpp14HVAAs00NuCuc1tdayWylXccLcldDFajDDAu7Y= X-Received: by 2002:a17:907:a427:b0:72b:8cc5:5487 with SMTP id sg39-20020a170907a42700b0072b8cc55487mr14716209ejc.354.1658856110539; Tue, 26 Jul 2022 10:21:50 -0700 (PDT) MIME-Version: 1.0 From: Don Seiler Date: Tue, 26 Jul 2022 12:21:39 -0500 Message-ID: Subject: Fix for pgbackrest systemd service file To: pgsql-pkg-debian@postgresql.org Cc: David Steele Content-Type: multipart/alternative; boundary="00000000000033e46105e4b8891e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000033e46105e4b8891e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good afternoon, I was talking with David Steele and pointed out errors I saw in the pgbackrest service file when doing some early TLS file. It looks like the errors stem from line 15 where the kill command doesn't have the absolute path, and should be /bin/kill. I confirmed the errors go away when I specify the full path to the kill binary. I've given David this info and he is updating their documentation to reflect the change also. Before: $ sudo systemctl status pgbackrest =E2=97=8F pgbackrest.service - pgBackRest Server Loaded: loaded (/lib/systemd/system/pgbackrest.service; disabled; vendor preset: enabled) Active: inactive (dead) Jul 19 16:37:44 postgres-history0-az-eastus2 systemd[1]: /lib/systemd/system/pgbackrest.service:15: Executable path is not absolute: kill -HUP $MAINPID After: $ sudo systemctl status pgbackrest =E2=97=8F pgbackrest.service - pgBackRest Server Loaded: loaded (/lib/systemd/system/pgbackrest.service; disabled; vendor preset: enabled) Active: inactive (dead) Diff on an Ubuntu 18.04 system: $ sudo diff -u pgbackrest.service.old /lib/systemd/system/pgbackrest.servic= e --- pgbackrest.service.old 2022-07-26 17:19:37.321260963 +0000 +++ /lib/systemd/system/pgbackrest.service 2022-07-26 15:34:51.100155390 +0000 @@ -12,7 +12,7 @@ ExecStart=3D/usr/bin/pgbackrest server ExecStartPost=3D/bin/sleep 3 ExecStartPost=3D/bin/bash -c "[ ! -z $MAINPID ]" -ExecReload=3Dkill -HUP $MAINPID +ExecReload=3D/bin/kill -HUP $MAINPID [Install] WantedBy=3Dmulti-user.target --=20 Don Seiler www.seiler.us --00000000000033e46105e4b8891e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good afternoon,

I was talking with Davi= d Steele and pointed out errors I saw in the pgbackrest service file when d= oing some early TLS file. It looks like the errors stem from line 15 where = the=C2=A0kill=C2=A0command doesn't have= the absolute path, and should be=C2=A0/bin/kill. I confirmed the errors go away when I specify the full path to the= =C2=A0kill=C2=A0binary.

I've given David this info and he is updating their documentation= to reflect the change also.

Before:
$ sudo systemctl status pgbackrest
= =E2=97=8F pgbackrest.service - pgBackRest Server
=C2=A0 =C2=A0Loaded: lo= aded (/lib/systemd/system/pgbackrest.service; disabled; vendor preset: enab= led)
=C2=A0 =C2=A0Active: inactive (dead)

Jul 19 16:37:44 postgre= s-history0-az-eastus2 systemd[1]: /lib/systemd/system/pgbackrest.service:15= : Executable path is not absolute: kill -HUP $MAINPID

=
After:

$ s= udo systemctl status pgbackrest
=E2=97=8F pgbackrest.service - pgBackRes= t Server
=C2=A0 =C2=A0Loaded: loaded (/lib/systemd/system/pgbackrest.ser= vice; disabled; vendor preset: enabled)
=C2=A0 =C2=A0Active: inactive (d= ead)


Diff on an Ubuntu 18.04= system:

$ sudo diff -u p= gbackrest.service.old /lib/systemd/system/pgbackrest.service
--- pgbackr= est.service.old =C2=A0 =C2=A0 =C2=A02022-07-26 17:19:37.321260963 +0000
= +++ /lib/systemd/system/pgbackrest.service =C2=A0 =C2=A0 =C2=A02022-07-26 1= 5:34:51.100155390 +0000
@@ -12,7 +12,7 @@
=C2=A0ExecStart=3D/usr/bin/= pgbackrest server
=C2=A0ExecStartPost=3D/bin/sleep 3
=C2=A0ExecStartP= ost=3D/bin/bash -c "[ ! -z $MAINPID ]"
-ExecReload=3Dkill -HUP= $MAINPID
+ExecReload=3D/bin/kill -HUP $MAINPID

=C2=A0[Install]=C2=A0WantedBy=3Dmulti-user.target

--
Don Seiler
= www.seiler.us
--00000000000033e46105e4b8891e--