Version bump to 1.2.9
This commit is contained in:
parent
296e340920
commit
8b4964f06d
41
files/postfix-log-parser.in
Normal file
41
files/postfix-log-parser.in
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
# postfix_log_parser/files/postfix_log_parser.in 2022-05-13 09:04:03Z yo $
|
||||
#
|
||||
# PROVIDE: postfix_log_parser
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# postfix_log_parser_enable (bool): Set to "YES" to enable postfix_log_parser.
|
||||
# (default: "NO")
|
||||
#
|
||||
# postfix_log_parser_args (str): Optional arguments
|
||||
# (default: "")
|
||||
#
|
||||
# postfix_log_parser_loglevel (str): Log level
|
||||
# (default: "warn")
|
||||
#
|
||||
# postfix_log_parser_logfile (str): Postfix-Log-Parser logfile
|
||||
# (default: "/var/log/postfix_log_parser.log")
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=postfix_log_parser
|
||||
rcvar=postfix_log_parser_enable
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${postfix_log_parser_enable="NO"}
|
||||
: ${postfix_log_parser_loglevel="warn"}
|
||||
: ${postfix_log_parser_pidfile="/var/run/postfix_log_parser.pid"}
|
||||
: ${postfix_log_parser_logfile="/var/log/postfix_log_parser.log"}
|
||||
|
||||
command="/usr/local/bin/postfix-log-parser"
|
||||
pidfile="${postfix_log_parser_pidfile}"
|
||||
command_args="-p ${pidfile} ${postfix_log_parser_args}"
|
||||
|
||||
start_cmd="/usr/sbin/daemon ${command} ${command_args} >> ${postfix_log_parser_logfile} 2>&1"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user