to prevent subsequent script instantiations from affecting the
any that are currently running if they can't obtain the lock
in a timely manner.
/usr/local/etc/bin/usb-drive-power off
echo `date` ZFS admin lock released >> $logfile
fi
+ exit
}
-trap cleanup EXIT
+trap cleanup INT
# Auto snapshot every zfs filesystem on the system specified below
echo "$date Polling for ZFS admin lock" >> $logfile
# Parse the log file and extract our backup stats
$logfile_parser "$logfile" "$date" >> $logfile
+# clean things up and exit
+cleanup
+