Skip to content

Commit 0313c35

Browse files
authored
Merge pull request #512 from StackStorm/wvw/ignore-name
Ignore known processes using specified ports
2 parents 21b469b + caf9867 commit 0313c35

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/includes/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ check_st2_host_dependencies() {
9090

9191
for i in "${ports[@]}"
9292
do
93-
rv=$(port_status $i)
93+
rv=$(port_status $i | sed 's/.*-$\|.*systemd\|.*beam.smp.*\|.*epmd\|.*st2.*\|.*nginx.*\|.*python.*\|.*postgres\|.*postmaster.*\|.*mongod\|.*init//')
9494
if [ "$rv" != "Unbound" ] && [ "$rv" != "" ]; then
9595
used+=("$rv")
9696
fi

scripts/st2bootstrap-deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ check_st2_host_dependencies() {
207207

208208
for i in "${ports[@]}"
209209
do
210-
rv=$(port_status $i)
210+
rv=$(port_status $i | sed 's/.*-$\|.*systemd\|.*beam.smp.*\|.*epmd\|.*st2.*\|.*nginx.*\|.*python.*\|.*postgres\|.*postmaster.*\|.*mongod\|.*init//')
211211
if [ "$rv" != "Unbound" ] && [ "$rv" != "" ]; then
212212
used+=("$rv")
213213
fi

scripts/st2bootstrap-el6.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ check_st2_host_dependencies() {
202202

203203
for i in "${ports[@]}"
204204
do
205-
rv=$(port_status $i)
205+
rv=$(port_status $i | sed 's/.*-$\|.*systemd\|.*beam.smp.*\|.*epmd\|.*st2.*\|.*nginx.*\|.*python.*\|.*postgres\|.*postmaster.*\|.*mongod\|.*init//')
206206
if [ "$rv" != "Unbound" ] && [ "$rv" != "" ]; then
207207
used+=("$rv")
208208
fi

scripts/st2bootstrap-el7.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ check_st2_host_dependencies() {
202202

203203
for i in "${ports[@]}"
204204
do
205-
rv=$(port_status $i)
205+
rv=$(port_status $i | sed 's/.*-$\|.*systemd\|.*beam.smp.*\|.*epmd\|.*st2.*\|.*nginx.*\|.*python.*\|.*postgres\|.*postmaster.*\|.*mongod\|.*init//')
206206
if [ "$rv" != "Unbound" ] && [ "$rv" != "" ]; then
207207
used+=("$rv")
208208
fi

0 commit comments

Comments
 (0)