Files
weewx/pkg/etc/systemd/system/weewx@.service

28 lines
864 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/weewx-XXX.conf configuration directory
# database_name /var/lib/weewx/weewx-XXX.sdb specified in weewx-XXX.conf
# HTML_ROOT /var/www/html/weewx-XXX specified in weewx-XXX.conf
[Unit]
Description=WeeWX %i
Documentation=https://weewx.com/docs
Requires=time-sync.target
After=time-sync.target
PartOf=weewx.service
[Service]
ExecStart=weewxd --log-label weewxd-%i /etc/weewx/weewx-%i.conf
StandardOutput=null
RuntimeDirectory=weewx
RuntimeDirectoryMode=775
User=weewx
Group=weewx
[Install]
WantedBy=multi-user.target