Files
weewx/pkg/etc/systemd/system/weewx@.service
2023-12-21 19:31:22 -05:00

29 lines
876 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
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