blob: f8a95a45da0e67f68c22caf34bc6794f62e847ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: postpals-taillog
# REQUIRE: LOGIN cleanvar
# BEFORE: mail
# KEYWORD: shutdown
#
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# postpals_taillog_enable="YES"
#
. /etc/rc.subr
name=postpals_taillog
rcvar=postpals_taillog_enable
command=%%PREFIX%%/sbin/postpals-taillog
pidfile=/var/run/${name}.pid
command_interpreter="/usr/bin/perl"
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
postpals_taillog_enable=${postpals_taillog_enable="NO"}
postpals_taillog_flags=${postpals_taillog_flags="-p ${pidfile} 10040 /var/log/maillog"}
load_rc_config $name
run_rc_command "$1"
|