Here are portions of the startup file.

Here is portions of the startup file.

# set the hardware clock
wait_for_time_set() {
   if [ ! -f /sys/class/i2c-adapter/i2c-1/new_device ]
   then
      echo "Setting Clock"
      echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
      hwclock -s
   fi
}


do_start() {
   # call proc to set the hardware clock
    wait_for_time_set
    NPROC=$(count_procs)
    if [ $NPROC != 0 ]; then
        return 1
    fi
    start-stop-daemon --start --chuid $WEEWX_USER --pidfile $PIDFILE --exec 
$DAEMON -- $DAEMON_ARGS || return 2
    return 0
}


On Wednesday, October 11, 2017 at 3:05:33 PM UTC-6, Oscar wrote:
>
> Lost power the other day.  When power came back on, the error "launch of 
> report thread aborted:  existing report thread still running." was being 
> written to the log file every couple of seconds.  I restarted weewx and the 
> issue was resolved.  As a test, I disconnected power and the same issue 
> occurred.  I did a 'ps -ef | grep weewx' and one entry of weewxd was 
> displayed.  Is there an issue with an old PID file being read?  
>
> weewx version 3.7.1
> raspberry pi2
> 1,236,526 records in archive table
>
> Thanks,
> Oscar
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to