summaryrefslogtreecommitdiff
path: root/security/sshguard/files/patch-src_sshguard.in
blob: 6881e162028f9b932ade1a6b99e6f9efa8aeba5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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