Permalink
Browse files

node_exporter,dhcp_server: remove strict dependency to bat device in …

…unitfile
  • Loading branch information...
1977er committed Dec 11, 2018
1 parent c22a3b0 commit cbbf9498866d1ca62c6aabe936e845e79205ae88
@@ -4,11 +4,11 @@ After=network.target
ConditionPathExists=/etc/dhcp/dhcpd.conf
{% if legacy_dom0 == true %}
After=sys-subsystem-net-devices-bat0.device
Requires=sys-subsystem-net-devices-bat0.device
# Requires=sys-subsystem-net-devices-bat0.device
{% endif %}
{% for domain in domains | default([]) %}
After=sys-subsystem-net-devices-bat{{ domain.id }}.device
Requires=sys-subsystem-net-devices-bat{{ domain.id }}.device
# Requires=sys-subsystem-net-devices-bat{{ domain.id }}.device
{% endfor %}

[Service]
@@ -3,11 +3,11 @@ Description=a small daemon to monitor network traffic using bpf (berkley packet
After=network.target
{% if legacy_dom0 == true %}
After=sys-subsystem-net-devices-bat0.device
Requires=sys-subsystem-net-devices-bat0.device
# Requires=sys-subsystem-net-devices-bat0.device
{% endif %}
{% for domain in domains | default([]) %}
After=sys-subsystem-net-devices-bat{{ domain.id }}.device
Requires=sys-subsystem-net-devices-bat{{ domain.id }}.device
# Requires=sys-subsystem-net-devices-bat{{ domain.id }}.device
{% endfor %}
PartOf=bpfcountd.service

0 comments on commit cbbf949

Please sign in to comment.