From 51d25a014136eca6f4bd34e56f793ac174934058 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 20 Jun 2023 13:17:09 +0200 Subject: [PATCH] ip6.service: Import existing file into repository --- misc_systemd_units/ip6.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 misc_systemd_units/ip6.service diff --git a/misc_systemd_units/ip6.service b/misc_systemd_units/ip6.service new file mode 100644 index 0000000..775eaba --- /dev/null +++ b/misc_systemd_units/ip6.service @@ -0,0 +1,15 @@ +[Unit] + +Wants=startup-tags.service +After=startup-tags.service +ConditionPathExists=/node/tags/ip6 + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/bash -c "echo 0 >/proc/sys/net/ipv6/conf/all/disable_ipv6" +ExecStop=/usr/bin/bash -c "echo 1 >/proc/sys/net/ipv6/conf/all/disable_ipv6" + +[Install] +WantedBy=network.target +