I have just installed syslog-ng-1.6.5 and was looking forwarded to putting some of its features to good use. However, I just cannot get this up according to your install instructions.

When I try to start "syslog-ng" I get the following errors. I have check the startup for typos I could not find any. does anyone have any insight to this error?

[root@traffic syslog-ng]# /etc/rc.d/init.d/syslog-ng start
/etc/rc.d/init.d/syslog-ng: line 1: init.d: command not found
/etc/rc.d/init.d/syslog-ng: line 14: RETVAL-0: command not found
Starting syslog-ng: Cannot open configuration file /usr/local/etc/syslog-ng/syslog-ng.conf for reading
Parse error reading configuration file, exiting. (line 1)
[FAILED]
[root@traffic syslog-ng]#

this is my startup script

[root@traffic syslog-ng]# vi /etc/rc.d/init.d/syslog-ng

init.d script
#!/bin/bash

#
#description: syslog-ng starup script
#
#process name: syslog-ng
#config: /etc/syslog-ng/syslog-ng.conf
#pidfile: /var/run/syslog-ng.pid

#source function library
. /etc/rc.d/init.d/functions

RETVAL-0

case "$1" in
        start)
                echo -n "Starting syslog-ng: "
                if [ ! -f /var/run/syslog-ng.pid ] ; then
                        case "`type -type success`" in
                          function)
                            /usr/local/sbin/syslog-ng && success "syslog-ng starup" || \
                               failure "syslog-ng startup"
                           RETVAL=$?
                         ;;
                         *)
                           /usr/local/sbin/syslog-ng && echo -n "syslog-ng "
                           RETVAL=$?
                         ;;
                         esac
                         [ $RETVAL -eq 0 ] && echo -n "syslog-ng "
                fi
                echo
                ;;
        stop)
                echo -n "Shutting down syslog-ng; "
                if [ -f /var/run/syslog-ng.pid ] ; then
                        killproc syslog-ng
                fi
                echo
                [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog-ng
                ;;
        restart)
                $0 stop
                $0 start
                RETVAL=$?
                ;;
        status)
                status syslog-ng
                RETVAL=$?
                ;;
        *)
                echo "Usage: {start|stop|restart|status}"
                exit 1
esac

exit $RETVAL
Thanks in advance.


Regards,
Michael DiMartino
Director of MIS
The telx Group, Inc.
17 State St, 33rd Floor
New York, NY 10004
T: 212.480.3300 X2022
C: 646.207.6603
 



Regards,
Michael DiMartino
Director of MIS
The telx Group, Inc.
17 State St, 33rd Floor
New York, NY 10004
T: 212.480.3300 X2022
C: 646.207.6603