Make stopdaemons.sh work no matter where it runs from

darcs-hash:20080927210355-f6e2c-e434c363a6d849215ceb7ee366f35c0a3cd92c8e.gz
This commit is contained in:
CiaranG 2008-09-27 17:03:55 -04:00
parent dbf80a0f5a
commit 245a75f141

View File

@ -20,7 +20,8 @@
# This program tries to stop the daemons for Laconica that were
# previously started by startdaemons.sh
DIR=`php getpiddir.php`
SDIR=`dirname $0`
DIR=`php $SDIR/getpiddir.php`
for f in jabberhandler ombhandler publichandler smshandler \
xmppconfirmhandler xmppdaemon; do