View | Details | Raw Unified | Return to bug 207218
Collapse All | Expand All

(-)etc/defaults/rc.conf (+3 lines)
Lines 579-585 Link Here
579
				# Flags for sendmail_msp_queue daemon.
579
				# Flags for sendmail_msp_queue daemon.
580
sendmail_rebuild_aliases="NO"	# Run newaliases if necessary (YES/NO).
580
sendmail_rebuild_aliases="NO"	# Run newaliases if necessary (YES/NO).
581
581
582
# Settings for dma(8)
583
dma_flushq_enable="NO"		# Flush dma(8) queue on startup and shutdown
582
584
585
583
##############################################################
586
##############################################################
584
###  Miscellaneous administrative options  ###################
587
###  Miscellaneous administrative options  ###################
585
##############################################################
588
##############################################################
(-)etc/rc.d/Makefile (+4 lines)
Lines 184-189 Link Here
184
FILES+=		ccd
184
FILES+=		ccd
185
.endif
185
.endif
186
186
187
.if ${MK_DMAGENT} != "no"
188
FILES+=		dma_flushq
189
.endif
190
187
.if ${MK_FTP} != "no"
191
.if ${MK_FTP} != "no"
188
FILES+=		ftpd
192
FILES+=		ftpd
189
.endif
193
.endif
(-)etc/rc.d/dma_flushq (+32 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: dma mail
6
# REQUIRE: LOGIN cleanvar
7
# KEYWORD: shutdown
8
#
9
# Add the following line to /etc/rc.conf to enable dma mailq flushing on
10
# startup or before shutdown:
11
# dma_flushq_enable (bool): Set it to "YES" to flush mailq on startup
12
#                           or before shutdown
13
#                           Default is "NO".
14
#
15
16
. /etc/rc.subr
17
18
name="dma_flushq"
19
rcvar=dma_flushq_enable
20
21
load_rc_config ${name}
22
23
: ${dma_flushq_enable:="NO"}
24
25
start_cmd=${name}
26
stop_cmd=${name}
27
28
dma_flushq() {
29
    /usr/libexec/dma -q
30
}
31
32
run_rc_command "$1"
(-)tools/build/mk/OptionalObsoleteFiles.inc (+1 lines)
Lines 1845-1850 Link Here
1845
1845
1846
.if ${MK_DMAGENT} == no
1846
.if ${MK_DMAGENT} == no
1847
OLD_FILES+=etc/dma/dma.conf
1847
OLD_FILES+=etc/dma/dma.conf
1848
OLD_FILES+=etc/rc.d/dma_flushq
1848
OLD_FILES+=usr/libexec/dma
1849
OLD_FILES+=usr/libexec/dma
1849
OLD_FILES+=usr/libexec/dma-mbox-create
1850
OLD_FILES+=usr/libexec/dma-mbox-create
1850
OLD_FILES+=usr/share/man/man8/dma.8.gz
1851
OLD_FILES+=usr/share/man/man8/dma.8.gz

Return to bug 207218