aboutsummaryrefslogtreecommitdiff
path: root/net-im/ejabberd
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-09-24 18:50:05 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-09-24 18:50:05 +0000
commit0cd6a9f4cf74e65c6162085472f6b5e37075d6bf (patch)
tree2a039b32aa2fa013e0476597a598692dfd075f02 /net-im/ejabberd
parent0e68a3bc85d8f6c7024ce265faccf0a9332357d2 (diff)
- Pass ERL_EPMD_ADDRESS to other actions of rc.d script, missed from last time
- Bump PORTREVISION Reported by: Vick Khera <vivek@khera.org> (via private email)
Notes
Notes: svn path=/head/; revision=282331
Diffstat (limited to 'net-im/ejabberd')
-rw-r--r--net-im/ejabberd/Makefile2
-rw-r--r--net-im/ejabberd/files/ejabberd.in6
2 files changed, 4 insertions, 4 deletions
diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile
index ed54ed15a807..b946d2fe4b69 100644
--- a/net-im/ejabberd/Makefile
+++ b/net-im/ejabberd/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ejabberd
PORTVERSION= 2.1.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-im
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PORTVERSION}/
diff --git a/net-im/ejabberd/files/ejabberd.in b/net-im/ejabberd/files/ejabberd.in
index a8797f678b83..15819d384263 100644
--- a/net-im/ejabberd/files/ejabberd.in
+++ b/net-im/ejabberd/files/ejabberd.in
@@ -45,7 +45,7 @@ ejabberd_status()
ejabberd_checkstatus()
{
- su $EJABBERDUSER -c "$EJABBERDCTL --node $ejabberd_node status > /dev/null"
+ su $EJABBERDUSER -c "env ERL_EPMD_ADDRESS=\"${ejabberd_epmd_address}\" $EJABBERDCTL --node $ejabberd_node status > /dev/null"
}
ejabberd_start()
@@ -57,7 +57,7 @@ ejabberd_start()
ejabberd_stop()
{
echo "Stopping $name."
- if su $EJABBERDUSER -c "$EJABBERDCTL --node $ejabberd_node stop"; then
+ if su $EJABBERDUSER -c "env ERL_EPMD_ADDRESS=\"${ejabberd_epmd_address}\" $EJABBERDCTL --node $ejabberd_node stop"; then
# sleep 2
# killall -u ejabberd -kill
else
@@ -69,7 +69,7 @@ ejabberd_reload()
{
echo "Restarting $name."
if ejabberd_checkstatus; then
- su $EJABBERDUSER -c "$EJABBERDCTL --node $ejabberd_node restart"
+ su $EJABBERDUSER -c "env ERL_EPMD_ADDRESS=\"${ejabberd_epmd_address}\" $EJABBERDCTL --node $ejabberd_node restart"
else
ejabberd_start
fi