7dac321cd1
fixes #18
12 lines
683 B
Django/Jinja
12 lines
683 B
Django/Jinja
[Unit]
|
|
Description=respondd instance {{ item.id }}
|
|
After={% for interface in item.fastd.nodes.instances %}fastd@{{ item.id }}vpn-{{ interface.mtu }}.service{% if not loop.last %} {% endif %}{% endfor %}
|
|
|
|
|
|
[Service]
|
|
ExecStart=/home/admin/clones/mesh-announce/respondd.py -i {{ item.id }}br {% for interface in item.fastd.nodes.instances %}-i {{ item.id }}vpn-{{ interface.mtu }}{% if not loop.last %} {% endif %}{% endfor %} -b {{ item.id }}bat -s {{ item.site_code }} -d {{ item.site_code }} --data-provider-directory /home/admin/clones/mesh-announce/
|
|
Restart=always
|
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|