mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-11-15 00:44:09 +01:00
Update stenoloss.sh
This commit is contained in:
1 parent
d3f65ac1a8
commit
9548b3df54
1 file changed
+9
@@ -1,5 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP=stenoloss
|
||||
lf=/tmp/$APP-pidLockFile
|
||||
# create empty lock file if none exists
|
||||
cat /dev/null >> $lf
|
||||
read lastPID < $lf
|
||||
# if lastPID is not null and a process with that pid exists , exit
|
||||
[ ! -z "$lastPID" -a -d /proc/$lastPID ] && exit
|
||||
echo $$ > $lf
|
||||
|
||||
# Get the data
|
||||
DROP=$(tac /var/log/stenographer/stenographer.log | grep -m1 drop | awk '{print $14}' | awk -F "=" '{print $2}')
|
||||
|
||||
|
||||
Reference in new issue
Block a user