mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-12 02:03:30 +01:00
Update so-curator-delete
This commit is contained in:
@@ -1,2 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
APP=delete
|
||||
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
|
||||
|
||||
docker exec so-curator curator --config /etc/curator/config/curator.yml /etc/curator/action/delete.yml > /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user