Skip to content

Commit

Permalink
ip6.service: Import existing file into repository
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jun 20, 2023
1 parent b2c46b1 commit 51d25a0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions misc_systemd_units/ip6.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 51d25a0

Please sign in to comment.