Use 'ss' to check whether port is free

This utility is used inside Beakerlib.
This commit is contained in:
Lukáš Zachar 2024-11-12 15:18:55 +01:00
commit ec9c5bc5ed

View file

@ -78,7 +78,7 @@ rlJournalStart
rlRun "bundle config build.nokogiri --use-system-libraries" 0 "Build nokogiri with system libraries"
rlRun "bundle install"
fi
rlRun "netstat -tulpn | grep 3000" 1 "Check if port 3000 isn't engaged"
rlRun "ss -tulpn | grep 3000" 1 "Check if port 3000 isn't engaged"
rlRun "rails server &" 0 "Running rails server"
sleep 10
rlRun "wget http://0.0.0.0:3000" 0 "Wgetting running rails application"