Provide rc.d support for the Postfix mail system. Committed to the

base because there is no support for packages in rc.d, and Postfix
is supposed to become part of the base system anyhow.
This commit is contained in:
thorpej 2000-04-26 05:28:03 +00:00
parent 0316517d36
commit fad0a37405
3 changed files with 33 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: rc.conf,v 1.79 2000/04/15 21:14:48 tsarna Exp $
# $NetBSD: rc.conf,v 1.80 2000/04/26 05:28:03 thorpej Exp $
#
# see rc.conf(5) for more information.
@ -83,6 +83,7 @@ named=NO named_flags=""
timed=NO timed_flags=""
xntpd=NO xntpd_flags=""
sendmail=NO sendmail_flags="-bd -q30m"
postfix=NO
lpd=NO lpd_flags="-s" # -s "secure" unix domain only
# Routing daemons

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.3 2000/04/16 04:18:51 thorpej Exp $
# $NetBSD: Makefile,v 1.4 2000/04/26 05:28:04 thorpej Exp $
FILES= DAEMON LOGIN SERVERS accounting amd apmd bootparams bootconf.sh ccd \
cleartmp cron dhclient dhcpd dhcrelay dmesg fsck.sh gated inetd \
ipfilter ipmon ipnat kerberos ldconfig lkm1 lkm2 lkm3 local lpd mopd \
motd mountall mountcritlocal mountcritremote mountd mrouted named \
network nfsd nfslocking ntpdate portmap ppp pwcheck quota \
network nfsd nfslocking ntpdate portmap postfix ppp pwcheck quota \
raidframe rarpd rbootd root route6d routed rtadvd rtsold rwho savecore \
screenblank sendmail swap1 swap2 sysdb sysctl syslogd systemfs timed \
ttys virecover wscons xdm xfs xntpd ypbind yppasswdd ypserv

29
etc/rc.d/postfix Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
#
# $NetBSD: postfix,v 1.1 2000/04/26 05:28:04 thorpej Exp $
#
# PROVIDE: mail
# REQUIRE: LOGIN
# we could do this, but make mail start late, so that things like
# .forward's are not processed until the system is fully operational
## REQUIRE: DAEMON
. /etc/rc.subr
. /etc/rc.conf
postfix_start_precmd() {
postfix start
return 1
}
start_precmd="postfix_start_precmd"
stop_cmd="postfix stop"
reload_cmd="postfix reload"
name="postfix"
required_files="/etc/${name}/main.cf"
run_rc_command "$1" "reload"