I am using weewx V5 and also using msql (mariadb) and after a reboot weewx has to wait until mysql starts.
I have added After=time-sync.target mariadb.service to the systemd service file.
Could this be added to the weewx-data/util/systemd/weewx.service file maybe as a comment for other users of mysql?
# systemd unit configuration file for WeeWX
#
# For information about running WeeWX under systemd,
# be sure to read
https://github.com/weewx/weewx/wiki/systemd#
[Unit]
Description=WeeWX weather system
Documentation=
https://weewx.com/docsRequires=time-sync.target
After=time-sync.target
mariadb.serviceRequiresMountsFor=/opt
[Service]
ExecStart=/opt/weewx/weewx-venv/bin/python3 /opt/weewx/weewx-venv/lib/python3.11/site-packages/weewxd.py /opt/weewx/weewx-data/weewx.conf
StandardOutput=null
# To run as a non-root user, set the username and group here:
#User=user
#Group=user
[Install]
WantedBy=multi-user.target