Add script which sets LD_LIBRARY_PATH, etc, so that OpenSSL
authoraland <aland>
Wed, 7 Jan 2004 17:07:41 +0000 (17:07 +0000)
committeraland <aland>
Wed, 7 Jan 2004 17:07:41 +0000 (17:07 +0000)
weirdness can be taken care of.

It should also work for MySQL...

scripts/radiusd.sh [new file with mode: 0644]

diff --git a/scripts/radiusd.sh b/scripts/radiusd.sh
new file mode 100644 (file)
index 0000000..e791dff
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+#  The purpose of this script is to forcibly load the *correct* version
+#  of OpenSSL for FreeRADIUS, when you have more than one version of OpenSSL
+#  installed on your system.
+#
+#  You'll have to edit the directories to the correct location
+#  for your local system.
+#
+#      $Id$
+#
+
+LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/ssl/lib:/usr/local/radius/lib
+LD_PRELOAD=/usr/local/ssl/lib/libcrypto.so
+
+export LD_LIBRARY_PATH LD_PRELOAD
+exec /usr/local/radius/sbin/radiusd $@