1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_VMG8623-T50B/vmg8623_t50b_default_release/package/syslog-ng/files/syslog-ng.sh

28 lines
609 B
Bash
Executable File

#!/bin/sh
export PATH=/home/bin:/home/scripts:/opt/bin:/bin:/sbin:/usr/bin:/usr/sbin
#export LD_LIBRARY_PATH=/lib/public:/lib/private:/usr/lib:/lib
SUPPORT_LIB64=`ls / | grep lib64`
if [ "$SUPPORT_LIB64" == "lib64" ] ;then
export LD_LIBRARY_PATH=/lib/public:/lib/private:/usr/lib:/lib:/lib64/gpl:/lib64
else
export LD_LIBRARY_PATH=/lib/public:/lib/private:/usr/lib:/lib
fi
case "$1" in
start)
ln -s /var/log/log /dev/log
cp /etc/syslog-ng/syslog-ng_init.conf /var/syslog-ng.conf
#/usr/sbin/syslog-ng -f /var/syslog-ng.conf
exit 0
;;
*)
echo "$0: unrecognized option $1"
exit 1
;;
esac