Skip to content

Commit

Permalink
Increase network service timeout to 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
GitExample committed Oct 26, 2021
1 parent 90dcab8 commit d6ae6b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions scripts/before-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# increase network service timeout to 15 minutes

mkdir -p /etc/systemd/system/network.service.d/
cat << EOF >> /etc/systemd/system/network.service.d/override.conf
[Service]
Type=forking
Restart=no
TimeoutSec=15min
EOF
6 changes: 5 additions & 1 deletion scripts/before-remove.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# remove timeout override
rm -rf /etc/systemd/system/network.service.d/

systemctl=$(which systemctl)
${systemctl} stop oci-cn-auth.timer
${systemctl} stop oci-cn-auth.service
${systemctl} disable oci-cn-auth.timer
${systemctl} disable oci-cn-auth.service
${systemctl} reset-failed
${systemctl} reset-failed

0 comments on commit d6ae6b5

Please sign in to comment.