summaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng/files
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-05-14 19:56:05 +0000
committeradrianp <adrianp@pkgsrc.org>2006-05-14 19:56:05 +0000
commit5810e84e5c0d44c2c0747ab6eb5806913c9df327 (patch)
tree2df9e9ae2ac07c1cb397ba3c8815c19511c29740 /sysutils/syslog-ng/files
parentd36ad06f95f6d6573090af7bdc885138bea50d7c (diff)
downloadpkgsrc-5810e84e5c0d44c2c0747ab6eb5806913c9df327.tar.gz
Syslog-ng tries to fill the gaps original syslogd's were lacking:
* powerful configurability * filtering based on message content * message integrity, message encryption (not yet implemented in 1.4.x) * portability * better network forwarding
Diffstat (limited to 'sysutils/syslog-ng/files')
-rw-r--r--sysutils/syslog-ng/files/syslogng.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/syslog-ng/files/syslogng.sh b/sysutils/syslog-ng/files/syslogng.sh
new file mode 100644
index 00000000000..4b0e6d8552b
--- /dev/null
+++ b/sysutils/syslog-ng/files/syslogng.sh
@@ -0,0 +1,34 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: syslogng.sh,v 1.1.1.1 2006/05/14 19:56:05 adrianp Exp $
+#
+
+# PROVIDE: syslogd
+# REQUIRE: mountcritremote sysdb wscons
+# BEFORE: SERVERS
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="syslogng"
+rcvar=${name}
+ngname="syslog-ng"
+command="@PREFIX@/sbin/${ngname}"
+pidfile="@VARBASE@/run/${ngname}.pid"
+required_files="@PKG_SYSCONFDIR@/${ngname}.conf"
+extra_commands="reload checkconfig"
+reload_cmd="syslogng_reload"
+checkconfig_cmd="syslogng_checkconfig"
+command_args="-p ${pidfile} -f ${required_files}"
+
+syslogng_reload() {
+ kill -HUP `cat ${pidfile}`
+}
+
+syslogng_checkconfig() {
+ ${command} -s -f ${required_files}
+}
+
+load_rc_config $name
+run_rc_command "$1"