Skip to content

Commit

Permalink
Increase the timeout for systemctl command execution
Browse files Browse the repository at this point in the history
> Since systemd by itself has a 30 sec timeout, YaST should add some more
> seconds to allow for systemctl to exit gracefully even if it has a
> timeout and not just kill the systemctl command just one seconds before
> it would time out itself.

See https://bugzilla.suse.com/show_bug.cgi?id=1098910#c3
  • Loading branch information
dgdavid committed Aug 30, 2018
1 parent bf5954d commit 938b7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/systemd/src/lib/yast2/systemctl.rb
Expand Up @@ -21,7 +21,7 @@ def initialize(details)
COMMAND_OPTIONS = " --no-legend --no-pager --no-ask-password ".freeze
ENV_VARS = " LANG=C TERM=dumb COLUMNS=1024 ".freeze
SYSTEMCTL = ENV_VARS + CONTROL + COMMAND_OPTIONS
TIMEOUT = 30 # seconds
TIMEOUT = 40 # seconds

class << self
BASH_SCR_PATH = Yast::Path.new(".target.bash_output")
Expand Down

0 comments on commit 938b7cd

Please sign in to comment.