Redhat init script?
Has anyone made up a standard syslog-ng start/stop init script for Redhat 6? I noticed there was a debian one.. I'm currently just starting syslog-ng from the rc.local script. If not I'll create one but I don't want to do it if someone has already done it. Regards, David Robinson.
On 21 Oct, David Robinson wrote:
Has anyone made up a standard syslog-ng start/stop init script for Redhat 6?
I noticed there was a debian one..
I'm currently just starting syslog-ng from the rc.local script.
If not I'll create one but I don't want to do it if someone has already done it.
Hi, here is one. It works with Redhat 6.0/6.1 Georg -- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward" #!/bin/sh # # syslog Starts syslog-ng # # chkconfig: 345 11 70 # description: syslog-ng is a enhanced system and kernel logging daemon # Author: Georg Funke, <georg.funke@netcologne.de> # Source function library. . /etc/rc.d/init.d/functions [ -f /usr/sbin/syslog-ng ] || exit 0 # See how we were called. case "$1" in start) echo -n "Starting system loggers: " daemon syslog-ng -f /etc/syslog-ng/syslog-ng.conf echo touch /var/lock/subsys/syslog-ng ;; stop) echo -n "Shutting down system loggers: " killproc syslog-ng echo rm -f /var/lock/subsys/syslog-ng ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading syslog-ng: " killproc syslog-ng -HUP echo ;; *) echo "Usage: syslog {start|stop|restart|reload}" exit 1 esac exit 0
Thanks, It worked perfectly. Can this script be added to a contrib dir in the syslog-ng.tar.gz archive? Regards, David Robinson georg.funke@netcologne.de wrote:
On 21 Oct, David Robinson wrote:
Has anyone made up a standard syslog-ng start/stop init script for Redhat 6?
I noticed there was a debian one..
I'm currently just starting syslog-ng from the rc.local script.
If not I'll create one but I don't want to do it if someone has already done it.
Hi,
here is one. It works with Redhat 6.0/6.1
Georg
-- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward"
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #!/bin/sh # # syslog Starts syslog-ng # # chkconfig: 345 11 70 # description: syslog-ng is a enhanced system and kernel logging daemon # Author: Georg Funke, <georg.funke@netcologne.de>
# Source function library. . /etc/rc.d/init.d/functions
[ -f /usr/sbin/syslog-ng ] || exit 0
# See how we were called. case "$1" in start) echo -n "Starting system loggers: " daemon syslog-ng -f /etc/syslog-ng/syslog-ng.conf echo touch /var/lock/subsys/syslog-ng ;; stop) echo -n "Shutting down system loggers: " killproc syslog-ng echo rm -f /var/lock/subsys/syslog-ng ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading syslog-ng: " killproc syslog-ng -HUP echo ;; *) echo "Usage: syslog {start|stop|restart|reload}" exit 1 esac
exit 0
On 21 Oct, David Robinson wrote:
Thanks, It worked perfectly.
Can this script be added to a contrib dir in the syslog-ng.tar.gz archive?
Regards, David Robinson
It's Balazs decision to add it to the contrib dir. Georg -- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward"
On 21 Oct, David Robinson wrote:
Has anyone made up a standard syslog-ng start/stop init script for Redhat 6?
I noticed there was a debian one..
I'm currently just starting syslog-ng from the rc.local script.
If not I'll create one but I don't want to do it if someone has already done it.
Hi, here is one. It works with Redhat 6.0/6.1 Georg -- Georg Funke Crowns & Flames SDC Cologne, Germany; http://www.geocities.com/Colosseum/4893 "Friendship is Square Dancing's greatest Reward" #!/bin/sh # # syslog Starts syslog-ng # # chkconfig: 345 11 70 # description: syslog-ng is a enhanced system and kernel logging daemon # Author: Georg Funke, <georg.funke@netcologne.de> # Source function library. . /etc/rc.d/init.d/functions [ -f /usr/sbin/syslog-ng ] || exit 0 # See how we were called. case "$1" in start) echo -n "Starting system loggers: " daemon syslog-ng -f /etc/syslog-ng/syslog-ng.conf echo touch /var/lock/subsys/syslog-ng ;; stop) echo -n "Shutting down system loggers: " killproc syslog-ng echo rm -f /var/lock/subsys/syslog-ng ;; restart) $0 stop $0 start ;; reload) echo -n "Reloading syslog-ng: " killproc syslog-ng -HUP echo ;; *) echo "Usage: syslog {start|stop|restart|reload}" exit 1 esac exit 0
«âu{( èµáÚ±©ò¢w¦i×®¥«-jwZÛ2²Z -j»²Ú)x±Êâ¦×è «z"z-Ƕ«{¬iשèâ&rêëz{eÊ;¬¶ËZ®Ø§Ì¬'úèØ^Éhq©lr¸©´ç¢Ò%ÊÞjרæî´hÜÛhvû(ê'z¬jZÞiÜ¢w¢µ j·l «âu{(̬'f¢X¬¶Ì¬'X¬¶ÆÚ¦â¶¡¶ÚþX¬¶ÆÚ¦â¶¿¨¥©ÿ+-wèþ̬'®²)ÒÊÅeG¢lr¸©¶Ë("÷æyÚ'xô éeÏÛÛjÈvn)ÿ²§v+]¡ë'¶ËZ®Ù%¢Z²)Ýy¸ìZ^6'$
participants (3)
-
David Robinson
-
georg.funke@netcologne.de
-
nickk@phreaker.net