Date: 9 Jan 2003 11:02:20 -0000 From: User & <luca@morettoni.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/46888: Add script run hook to newsyslog(8) Message-ID: <20030109110220.4702.qmail@morettoni.net>
next in thread | raw e-mail | index | archive | help
>Number: 46888 >Category: bin >Synopsis: Add script run hook to newsyslog(8) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 09 03:10:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Luca Morettoni >Release: FreeBSD 4.7-RELEASE-p2 i386 >Organization: Luca Morettoni >Environment: System: FreeBSD luca.aerre.biz 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #0: Thu Dec 12 20:24:14 CET 2002 root@luca.aerre.biz:/usr/obj/usr/src/sys/LUCA i386 >Description: This add to newsyslog the hook to run a user script after a log was archivied instead send a signal to a daemon. This is usefull for the program that don't handle signals for flushing logs (MySql for example). To use this feature, set path_to_pif field in newsyslog.conf to the complete pathname of the executable, prepended by a ! character (example: !/path_to_script). The script is run only if: - is user executable - is owned by root (unless -r option is used) - isn't group and world writable I hope you enjoy this patch, and if there's some change to do, I'm here to help you (and FreeBSD too!) Excuse for my very bad English! >How-To-Repeat: >Fix: For src/usr/sbin/newsyslog: http://morettoni.net/bsd/newsyslog.c.diffs http://morettoni.net/bsd/newsyslog.8.diffs For src/etc: http://morettoni.net/bsd/newsyslog.conf.diffs >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030109110220.4702.qmail>