Reply to this topicStart new topicStart Poll

> Install On *ubuntu Linux, Error loading libdl.so.2 ...
hschneider
Posted: Apr 9 2008, 11:48 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Refer to the manual for installation. When finished, probe with

cd /etc/init.d
sudo ./xmail start

When you get this error:
".. error while loading shared libraries: libdl.so.2: cannot open shared object ...."

then make sure, that you do NOT have LD_ASSUME_KERNEL=2.4.1 in your startup script.

Or just put this one as /etc/init.d/xmail:

CODE

#!/bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
#  This file should be used to construct scripts for /etc/init.d.
#
#  Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#  Modified by Davide Libenzi <davidel@xmailserver.org>
#
# Version: @(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
#

#export LD_ASSUME_KERNEL="2.4.1"

XMAIL_ROOT=/var/MailRoot
XMAIL_CMD_LINE="-QT 600 -Mr 168 -Pl -Sl -Ql -Cl"

PATH=$XMAIL_ROOT/bin:/lib:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=$XMAIL_ROOT/bin/XMail
NAME=XMail
DESC="XMail server"

test -f $DAEMON || exit 0

set -e
ulimit -c 20000

start_xmail()
{
   MAIL_ROOT=$XMAIL_ROOT
export MAIL_ROOT
   MAIL_CMD_LINE=$XMAIL_CMD_LINE
export MAIL_CMD_LINE
   $DAEMON
   while [ ! -f /var/run/$NAME.pid ]
   do
       sleep 1
   done
}

stop_xmail()
{
if [ -f /var/run/$NAME.pid ]
then
    echo `date` > $XMAIL_ROOT/.shutdown
       kill -INT `cat /var/run/$NAME.pid`
    while [ -f $XMAIL_ROOT/.shutdown ]
    do
        sleep 1
    done
fi
}


case "$1" in
 start)
     echo -n "Starting $DESC: "
     start_xmail
     echo "$NAME.[" `cat /var/run/$NAME.pid` "]"
;;
 stop)
     echo -n "Stopping $DESC: "
     stop_xmail
     echo "$NAME."
;;
 #reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
 #;;
 restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
stop_xmail
sleep 1
start_xmail
       echo "$NAME.[" `cat /var/run/$NAME.pid` "]"
;;
 *)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac

exit 0






--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Reply to this topicStart new topicStart Poll