What made troubleshooting this issue more difficult is that there's also a boot order issue. When rebooted, it seems that the /etc/localtime isn't ready when dnscrypt-proxy2 starts, so it defaults to UTC. I had mistaken this behavior for /etc/localtime not working. However, restarting dnscrypt-proxy2 after boot is complete establishes the correct time in the logs. Not sure how to fix this particular problem.
Right now I'm trying this in my /opt/etc/init.d/S09dnscrypt-proxy2:
Seems to work.
Right now I'm trying this in my /opt/etc/init.d/S09dnscrypt-proxy2:
Code:
# Create timezone info before starting
if [ ! -f /etc/localtime -a -f /opt/share/zoneinfo/US/Pacific ]; then
ln -sf /opt/share/zoneinfo/US/Pacific /etc/localtime
fi
Seems to work.
Last edited: