mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
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>
36 lines
545 B
Bash
36 lines
545 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# 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"
|