File 2075.patch of Package resource-agents.41129
From ef5552acb8177dc97af6722d2be2041248e1d475 Mon Sep 17 00:00:00 2001
From: Peter Varkoly <varkoly@suse.com>
Date: Mon, 22 Sep 2025 15:36:07 +0200
Subject: [PATCH] Enhance documentation: setproctitle_enable and background
must be set correctly. Use -f for pgrep to find the right pid.
---
heartbeat/vsftpd.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/heartbeat/vsftpd.in b/heartbeat/vsftpd.in
index 3831c4fa82..e62171f554 100644
--- a/heartbeat/vsftpd.in
+++ b/heartbeat/vsftpd.in
@@ -53,7 +53,8 @@ cat <<END
<resource-agent name="vsftpd" version="1.0">
<version>1.0</version>
<longdesc lang="en">
-This script manages vsftpd
+This script manages vsftpd.
+The parameter background in the vsftpd.conf must be set to yes and setproctitle_enable must be disabled. Otherwise the RA can not work.
</longdesc>
<shortdesc lang="en">Manages an vsftpd</shortdesc>
@@ -155,7 +156,7 @@ vsftpd_start()
exit $OCF_ERR_GENERIC
fi
- PID=$( pgrep $OCF_RESKEY_binpath )
+ PID=$( pgrep -f $OCF_RESKEY_binpath )
case $? in
0)
ocf_log info "PID file (pid:${PID} at $PIDFILE) created for vsftpd."