diff options
author | Xin LI <delphij@FreeBSD.org> | 2019-11-10 18:34:54 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2019-11-10 18:34:54 +0000 |
commit | 2d23a9ce141804d28436a2b374f89ff94e7122d3 (patch) | |
tree | 8130d4da146ebef428f5845f27026ef7755aacc9 /security/sshguard/files/patch-src_sshguard.in | |
parent | Allow building with tiff >= 4.1 (diff) |
Remove redundant pidfile check.
This fixes an issue that SSHguard won't start after an incompelete
shutdown.
PR: ports/241751
Approved by: portmgr (bugfix blanket)
MFH: 2019Q4
Notes
Notes:
svn path=/head/; revision=517220
Diffstat (limited to 'security/sshguard/files/patch-src_sshguard.in')
-rw-r--r-- | security/sshguard/files/patch-src_sshguard.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/sshguard/files/patch-src_sshguard.in b/security/sshguard/files/patch-src_sshguard.in new file mode 100644 index 000000000000..6881e162028f --- /dev/null +++ b/security/sshguard/files/patch-src_sshguard.in @@ -0,0 +1,19 @@ +--- src/sshguard.in.orig 2019-05-23 22:25:17 UTC ++++ src/sshguard.in +@@ -97,14 +97,8 @@ elif [ -z "$tailcmd" ]; then + exit 1 + fi + +-if [ ! -z "$PID_FILE" ]; then +- if [ ! -e "$PID_FILE" ]; then +- echo "$$" > $PID_FILE +- else +- err "$PID_FILE already exists; is SSHGuard already running?" +- exit 1 +- fi +-fi ++# Already checked by rc(8) ++echo "$$" > $PID_FILE + + # Make sure to kill entire process group (subshell) on exit/interrupts. + trap "clean_and_exit" INT TERM |