Line 0
Link Here
|
|
|
1 |
--- src/sshguard.in.orig 2019-05-23 22:25:17 UTC |
2 |
+++ src/sshguard.in |
3 |
@@ -97,14 +97,8 @@ elif [ -z "$tailcmd" ]; then |
4 |
exit 1 |
5 |
fi |
6 |
|
7 |
-if [ ! -z "$PID_FILE" ]; then |
8 |
- if [ ! -e "$PID_FILE" ]; then |
9 |
- echo "$$" > $PID_FILE |
10 |
- else |
11 |
- err "$PID_FILE already exists; is SSHGuard already running?" |
12 |
- exit 1 |
13 |
- fi |
14 |
-fi |
15 |
+# Already checked by rc(8) |
16 |
+echo "$$" > $PID_FILE |
17 |
|
18 |
# Make sure to kill entire process group (subshell) on exit/interrupts. |
19 |
trap "clean_and_exit" INT TERM |