Skip to content

Commit

Permalink
fb_systemd: Extend dbus timeout for systemd-networkd
Browse files Browse the repository at this point in the history
Differential Revision: D62067784

fbshipit-source-id: d06e3a4de57b86017169856fc81f42faa84bf9ab
  • Loading branch information
Daan De Meyer authored and facebook-github-bot committed Sep 4, 2024
1 parent 9e67322 commit 9f750e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cookbooks/fb_systemd/recipes/networkd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@
action :create
end

extend_dbus_timeout = <<~EOF
[Service]
Environment=SYSTEMD_BUS_TIMEOUT=50
EOF

if node.in_shard?(2)
fb_systemd_override 'systemd-networkd extend dbus timeout' do
only_if { node['fb_systemd']['networkd']['enable'] }
unit_name 'systemd-networkd.service'
content extend_dbus_timeout
action :create
end
end

service 'systemd-networkd.socket' do
only_if { node['fb_systemd']['networkd']['enable'] }
only_if { node['fb_systemd']['networkd']['use_networkd_socket_with_networkd'] }
Expand Down

0 comments on commit 9f750e8

Please sign in to comment.