[syslog-ng]syslog-ng
Michael Di Martino
syslog-ng@lists.balabit.hu
Fri, 7 Jan 2005 13:53:07 -0500
This is a multi-part message in MIME format.
------_=_NextPart_001_01C4F4EA.205BF9B8
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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]#=20
this is my startup script
[root@traffic syslog-ng]# vi /etc/rc.d/init.d/syslog-ng=20
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=3D$?
;;
*)
/usr/local/sbin/syslog-ng && echo -n =
"syslog-ng "
RETVAL=3D$?
;;
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=3D$?
;;
status)
status syslog-ng
RETVAL=3D$?
;;
*)
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
=20
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
=20
------_=_NextPart_001_01C4F4EA.205BF9B8
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>syslog-ng</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<BR>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">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.</FONT></P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">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?</FONT></P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">[root@traffic =
syslog-ng]# /etc/rc.d/init.d/syslog-ng start</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">/etc/rc.d/init.d/syslog-ng: line 1: init.d: command not =
found</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">/etc/rc.d/init.d/syslog-ng: line 14: RETVAL-0: command not =
found</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">Starting =
syslog-ng: Cannot open configuration file =
/usr/local/etc/syslog-ng/syslog-ng.conf for reading</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">Parse error =
reading configuration file, exiting. (line 1)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">[FAILED]</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">[root@traffic =
syslog-ng]# </FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">this is my =
startup script</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">[root@traffic =
syslog-ng]# vi /etc/rc.d/init.d/syslog-ng </FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">init.d =
script</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New">#!/bin/bash</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#description: =
syslog-ng starup script</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#process name: =
syslog-ng</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#config: =
/etc/syslog-ng/syslog-ng.conf</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#pidfile: =
/var/run/syslog-ng.pid</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">#source =
function library</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">. =
/etc/rc.d/init.d/functions</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">RETVAL-0</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">case =
"$1" in</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> start)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; echo -n "Starting syslog-ng: "</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; if [ ! -f /var/run/syslog-ng.pid ] ; then</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; =
case "`type -type success`" in</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; function)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; /usr/local/sbin/syslog-ng && success =
"syslog-ng starup" || \</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; failure "syslog-ng =
startup"</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; RETVAL=3D$?</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; *)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; /usr/local/sbin/syslog-ng && echo -n =
"syslog-ng "</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; RETVAL=3D$?</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; esac</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; &nb=
sp; [ $RETVAL -eq 0 ] && echo -n "syslog-ng "</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; fi</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; echo</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> stop)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; echo -n "Shutting down syslog-ng; =
"</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; if [ -f /var/run/syslog-ng.pid ] ; then</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; =
killproc syslog-ng</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; fi</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; echo</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; [ $RETVAL -eq 0 ] && rm -f =
/var/lock/subsys/syslog-ng</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> restart)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; $0 stop</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; $0 start</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; RETVAL=3D$?</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> status)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; status syslog-ng</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; RETVAL=3D$?</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; ;;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> *)</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; echo "Usage: =
{start|stop|restart|status}"</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier =
New"> &n=
bsp; exit 1</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">esac</FONT>
</P>
<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">exit =
$RETVAL</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Courier New">Thanks in =
advance.</FONT>
</P>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Regards,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Michael DiMartino</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Director of MIS</FONT>
<BR><B><FONT FACE=3D"Frutiger-Cn">The tel<SUP>x</SUP> Group, =
Inc.</FONT></B>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">17 State St, 33<SUP>rd</SUP> =
Floor</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">New York, NY 10004</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">T: 212.480.3300 X2022</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">C: 646.207.6603</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">=A0</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Regards,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Michael DiMartino</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">Director of MIS</FONT>
<BR><B><FONT FACE=3D"Frutiger-Cn">The tel<SUP>x</SUP> Group, =
Inc.</FONT></B>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">17 State St, 33<SUP>rd</SUP> =
Floor</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">New York, NY 10004</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">T: 212.480.3300 X2022</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">C: 646.207.6603</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">=A0</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C4F4EA.205BF9B8--