Files
weewx/pkg/etc/systemd/system/weewx@.service
Tom Keffer 6eb73a6608 Add target network-online.target to the weewx systemd unit files
Prevents `weewxd` from starting until the network is ready.
2024-02-07 12:54:49 -08:00

31 lines
932 B
Desktop File

# systemd service template file for running multiple instances of weewxd
#
# Each instance XXX must have its own config, database, and HTML_ROOT:
#
# item name where to specify
# -------- ----------------------------- ----------------------------
# config /etc/weewx/XXX.conf configuration directory
# database_name /var/lib/weewx/XXX.sdb specified in XXX.conf
# HTML_ROOT /var/www/html/XXX specified in XXX.conf
[Unit]
Description=WeeWX %i
Documentation=https://weewx.com/docs
Requires=time-sync.target
After=time-sync.target
Wants=network-online.target
After=network-online.target
PartOf=weewx.service
[Service]
ExecStart=weewxd --log-label weewxd-%i /etc/weewx/%i.conf
StandardOutput=null
StandardError=journal+console
RuntimeDirectory=weewx
RuntimeDirectoryMode=775
User=weewx
Group=weewx
[Install]
WantedBy=multi-user.target