Commit c06a917c authored by intrigeri's avatar intrigeri
Browse files

Always use --quiet when running `systemctl is-active i2p'.

This is what we do everywhere else in our code base.

refs: #10684
parent f026e1cd
...@@ -77,7 +77,7 @@ case "${1}" in ...@@ -77,7 +77,7 @@ case "${1}" in
start|restart) start|restart)
# Stop I2P before setting the router console language in case # Stop I2P before setting the router console language in case
# it pushes any updated options on quit. # it pushes any updated options on quit.
if systemctl is-active i2p; then if systemctl --quiet is-active i2p; then
systemctl stop i2p systemctl stop i2p
fi fi
# Get LANG, since we may run this from an environment that # Get LANG, since we may run this from an environment that
......
Given /^I2P is (?:still )?(not )?running$/ do |notrunning| Given /^I2P is (?:still )?(not )?running$/ do |notrunning|
if notrunning if notrunning
!$vm.execute('systemctl is-active i2p').success? !$vm.execute('systemctl --quiet is-active i2p').success?
else else
try_for(60) do try_for(60) do
$vm.execute('systemctl is-active i2p').success? $vm.execute('systemctl --quiet is-active i2p').success?
end end
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment