Skip to content
Snippets Groups Projects
Commit 13dc1dc4 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix detect of multiple names tcp process names

parent 71d4009c
No related branches found
No related tags found
1 merge request!129Db Profiles
......@@ -77,7 +77,7 @@ function dbdetect.exists(){
# --- check tcp process
local tcpprocess; tcpprocess=$( ini.value "tcp-process" )
if [ -n "$tcpprocess" ]; then
if ! netstat -tulpen 2>/dev/null | grep "^tcp.*:${tcpport} .*/${tcpprocess}" >/dev/null; then
if ! netstat -tulpen 2>/dev/null | grep -E "^tcp.*:${tcpport} .*/(${tcpprocess})" >/dev/null; then
# echo "No port tcp $tcpport available"
dbdetect._wd "... $tcpprocess not found for tcp ${tcpport}"
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment