Commit 4bd265fb authored by Olav Kvittem's avatar Olav Kvittem

impoved killing av previous days processes

parent 6076d8a1
......@@ -15,7 +15,7 @@ mkdir -p $logpath/$date
logdir=$logpath/$date
PIPE=$logdir/crude.pipe
PIPE2=$logdir/crude.pipe
PIPE2=$logdir/crude2.pipe
if test ! -p $PIPE ; then
mkfifo $PIPE
fi
......@@ -26,6 +26,9 @@ fi
if test $Tm = "00:00" -o $stop = yes; then
pkill -u $USER -f $crude || echo crude kill failed
pkill -u $USER -f $root/bin/crude-zip
pkill -u $USER -f 'cat /home/microdep/microdep/data/'
pkill -u $USER -f $root/bin/crude-ana
pkill -u $USER -f $rude || echo rude kill failed
pkill -u $USER -f $trace || echo trace kill failed
pkill -u $USER -f $tcptrace || echo tcptrace kill failed
......@@ -45,7 +48,7 @@ fi
if ! pgrep -u $USER -f $root/bin/crude-zip >/dev/null; then
$root/bin/crude-zip $PIPE $PIPE2 $logpath/$date/crude-$T.gz &
fi
if ! pgrep -u $USER -f $crude >/dev/null; then
if ! pgrep -u $USER -f $root/bin/crude-ana >/dev/null; then
$root/bin/crude-ana "$index" $PIPE $event_dir/${index}-events-`date +%a`.log &
fi
......
......@@ -10,7 +10,7 @@ if [ -f /.dockerenv ]; then
fi
package="microdep"
version="0.4"
version="0.5"
target="${package}_${version}_all"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment