Skip to content

Commit

Permalink
Update timeout to 15m for network service
Browse files Browse the repository at this point in the history
  • Loading branch information
GitExample committed Oct 26, 2021
1 parent d6ae6b5 commit 7bbb43b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PKG_NAME=oci-cn-auth
PKG_DESCRIPTION="OCI cluster network authentication tool"
PKG_VERSION=0.2.12
PKG_RELEASE=0
PKG_RELEASE=1
PKG_MAINTAINER="Marcin Zablocki \<[email protected]\>"
PKG_ARCH=all
PKG_ARCH_RPM=noarch
Expand Down
2 changes: 1 addition & 1 deletion scripts/before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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
cat <<EOF >> /etc/systemd/system/network.service.d/override.conf
[Service]
Type=forking
Restart=no
Expand Down
15 changes: 12 additions & 3 deletions scripts/before-upgrade.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#systemctl=$(which systemctl)
#${systemctl} stop oci-cn-auth.service
#${systemctl} stop oci-cn-auth.timer
if [ ! -f /etc/systemd/system/network.service.d/override.conf ] ; then
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
fi

systemctl=$(which systemctl)
${systemctl} daemon-reload

0 comments on commit 7bbb43b

Please sign in to comment.