mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
36dc0b3c5a
syslogd. Features include: - ability to filter messages based on content using regular expressions - forwarding logs on TCP WWW: http://www.balabit.com/products/syslog_ng/ -Vince Valenti vince@blue-box.net PR: ports/105370 Submitted by: Ivan Lago <ivan.lago at ifom-ieo-campus.it>
37 lines
646 B
Bash
37 lines
646 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/sysutils/syslog-ng3/files/Attic/syslog-ng.sh.in,v 1.1 2006-11-14 12:46:33 miwi Exp $
|
|
#
|
|
|
|
# PROVIDE: syslogd
|
|
# REQUIRE: mountcritremote cleanvar
|
|
# BEFORE: SERVERS
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
#syslog_ng_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=syslog_ng
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/sbin/syslog-ng
|
|
required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf
|
|
pidfile=/var/run/syslog.pid
|
|
extra_commands=reload
|
|
stop_postcmd=stop_postcmd
|
|
|
|
load_rc_config $name
|
|
|
|
: ${syslog_ng_enable:="NO"}
|
|
|
|
stop_postcmd() {
|
|
rm -f $pidfile
|
|
}
|
|
|
|
run_rc_command "$1"
|