1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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
This commit is contained in:
Xin LI 2019-11-10 18:34:54 +00:00
parent 49c5744a8c
commit 2d23a9ce14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517220
2 changed files with 20 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= sshguard
PORTVERSION= 2.4.0
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION}

View File

@ -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