mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
improve check_start, avoid false process match with grep
This commit is contained in:
parent
ad357c2f59
commit
d34dab4822
@ -352,7 +352,7 @@ stop_epmd()
|
|||||||
check_start()
|
check_start()
|
||||||
{
|
{
|
||||||
epmd -names | grep -q $NODE && {
|
epmd -names | grep -q $NODE && {
|
||||||
ps ux | grep -q $ERLANG_NODE && {
|
ps ux | grep -q $ERLANG_NODE | grep -v grep && {
|
||||||
echo "ejabberd is already running."
|
echo "ejabberd is already running."
|
||||||
exit 4
|
exit 4
|
||||||
} || {
|
} || {
|
||||||
|
Loading…
Reference in New Issue
Block a user