mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
This fixes an issue that SSHguard won't start after an incompelete shutdown. PR: ports/241751 Approved by: portmgr (bugfix blanket) MFH: 2019Q4
19 lines
498 B
Text
19 lines
498 B
Text
--- 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
|