-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase network service timeout to 15 minutes
- Loading branch information
GitExample
committed
Oct 26, 2021
1 parent
90dcab8
commit d6ae6b5
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|