mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
improve check_start only matching node process
This commit is contained in:
parent
1a2e6b02ab
commit
92f5509b35
@ -347,7 +347,7 @@ stop_epmd()
|
||||
check_start()
|
||||
{
|
||||
epmd -names | grep -q $NODE && {
|
||||
ps ux | grep -q $ERLANG_NODE && {
|
||||
ps ux | grep -v grep | grep -q $ERLANG_NODE && {
|
||||
echo "ejabberd is already running."
|
||||
exit 4
|
||||
} || {
|
||||
|
Loading…
Reference in New Issue
Block a user