Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Merge requests
!129
Db Profiles
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Db Profiles
db-detector
into
master
Overview
0
Commits
63
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
db-detector
into
master
1 year ago
Overview
0
Commits
63
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
13dc1dc4
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
13dc1dc4
fix detect of multiple names tcp process names
· 13dc1dc4
Hahn Axel (hahn)
authored
1 year ago
includes/dbdetect.class.sh
+
1
−
1
View file @ 13dc1dc4
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
Loading