[syslog-ng]help
Nicholas Berry
nberry@ragingwire.com
Wed, 2 Jan 2002 14:22:22 -0800
Here is an example script that I'm using for Solaris:
---SOF
#!/bin/sh
# syslog-ng start|stop|restart script
USAGE="Usage: `basename $0` start|stop|restart"
CFG="/usr/local/etc/syslog-ng.conf"
PATH="/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin"
LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:/usr/local/ssl/lib"
export LD_LIBRARY_PATH PATH
case "$1" in
'start')
if [ -f $CFG ]; then
echo "Starting syslog-ng: "
mount /syslog
syslog-ng
else
echo "-syslog-ng failed! Missing configuration file."
fi
;;
'stop')
echo "Stopping syslog-ng: "
pkill -x -u 0 syslog-ng
rm /var/run/syslog-ng.pid 1>&2
echo "done."
;;
'restart')
$0 stop
$0 start
;;
*)
echo $USAGE 1>&2
exit 1
esac
---EOF
Things you might want to change:
1. If you're not using Solaris, LD_LIBRARY_PATH is not needed
2. pkill is another Solaris specific reference, and can be
replaced with
"kill -9 `cat /var/run/syslog-ng.pid`"
3. If your syslog-ng.conf is located elsewhere, update the CFG
variable.
In order to have this start on (re)boot, place in your default run-level
directory (most linux distros use /etc/rc?.d, redhat uses
/etc/rc.d/rc?.d - rc3.d is most commonly the default). Name the file
S99syslog-ng (the 99 can change to whatever you like).
Hope that answers your question.
Thanks,
Nicholas Berry
Systems Engineer
RagingWire Telecommunications, Inc.
2710 Gateway Oaks Dr., Suite 300 South
Sacramento, CA 95833
Phone: 916.286.4048
Fax: 916.921.4148
E-mail: nberry@ragingwire.com
www.ragingwire.com
-----Original Message-----
From: Nocentino, Anthony [mailto:anocentino@cardioworks.net]
Sent: Wednesday, October 10, 2001 10:22 AM
To: syslog-ng@lists.balabit.hu
Subject: [syslog-ng]help
how do i config syslog-ng to start up automatically on boot
_______________________________________________
syslog-ng maillist - syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng