13 lines
274 B
Bash
Executable File
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
|