Files
Cnomicon/bin-scripts/can-log-stop
2021-01-22 10:16:20 -05:00

13 lines
274 B
Bash
Executable File

#!/bin/sh
# log file name based on time
PIDDIR=.
PIDFILE=$PIDDIR/can-log.pid
# kill if already running (restart)
if [ -f $PIDFILE ]; then
pkill -F $PIDFILE
echo "CANdump logging stopped"
rm -f $PIDFILE
fi