Skip to content

Commit

Permalink
Increase timeout from 10 seconds to 30 seconds in update-motd script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonia Xu committed Jun 8, 2021
1 parent d3652cb commit b42c360
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SOURCES/sbin_update-motd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if [ -d /etc/update-motd.d ]; then
# Run only if it's a regular file and executable
if [ -f $part ] && [ -x $part ]; then
TMPPART=$(mktemp --tmpdir motd.partXXXXX)
if (timeout 10s $part > $TMPPART); then
if (timeout 30s $part > $TMPPART); then
cat $TMPPART >> $TMPFILE
fi
rm -f $TMPPART
Expand Down
5 changes: 4 additions & 1 deletion SPECS/update-motd.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global _trivial .0
%global _buildid .1
%global _buildid .2
Name: update-motd
Version: 1.1.2
Release: 2%{?dist}%{?_trivial}%{?_buildid}
Expand Down Expand Up @@ -75,6 +75,9 @@ fi
%ghost /var/lib/update-motd/motd

%changelog
* Mon Jun 07 2021 Sonia Xu <[email protected]> - 1.1.2-2.amzn2.0.2
- Changed the timeout to 30 from 10 seconds in update-motd script

* Tue Apr 20 2021 Sonia Xu <[email protected]> - 1.1.2-2.amzn2.0.1
- Changed the random delay to 24 hours from 6 hours

Expand Down

0 comments on commit b42c360

Please sign in to comment.