git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/usr/local/bin/freshclam-die
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin/freshclam-die')
-rwxr-xr-xusr/local/bin/freshclam-die16
1 files changed, 0 insertions, 16 deletions
diff --git a/usr/local/bin/freshclam-die b/usr/local/bin/freshclam-die
deleted file mode 100755
index 0cd3e4b..0000000
--- a/usr/local/bin/freshclam-die
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-FCPIDF="/run/freshclam/freshclam.pid"
-
-[ ! -e "$FCPIDF" ]&&exit 1
-FCPID="$(cat "$FCPIDF")"
-[ -z "$FCPID" ]&&exit 2
-ps -p "$FCPID" >/dev/null 2>&1
-[ "$?" -ne 0 ]&&exit 3
-kill "$FCPID" >/dev/null 2>&1
-sleep 1
-ps -p "$FCPID" >/dev/null 2>&1||exit 0
-sleep 10
-kill -9 "$FCPID" >/dev/null 2>&1
-sleep 2
-ps -p "$FCPID" >/dev/null 2>&1&&exit 4||exit 0