Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Provide rc.d support for the Postfix mail system. Commi...
details: https://anonhg.NetBSD.org/src/rev/9fdf1e70da9b
branches: trunk
changeset: 485362:9fdf1e70da9b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Apr 26 05:28:03 2000 +0000
description:
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.
diffstat:
etc/rc.conf | 3 ++-
etc/rc.d/Makefile | 4 ++--
etc/rc.d/postfix | 29 +++++++++++++++++++++++++++++
3 files changed, 33 insertions(+), 3 deletions(-)
diffs (66 lines):
diff -r 3c2f7ff391d6 -r 9fdf1e70da9b etc/rc.conf
--- a/etc/rc.conf Wed Apr 26 05:13:51 2000 +0000
+++ b/etc/rc.conf Wed Apr 26 05:28:03 2000 +0000
@@ -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 @@
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
diff -r 3c2f7ff391d6 -r 9fdf1e70da9b etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Wed Apr 26 05:13:51 2000 +0000
+++ b/etc/rc.d/Makefile Wed Apr 26 05:28:03 2000 +0000
@@ -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
diff -r 3c2f7ff391d6 -r 9fdf1e70da9b etc/rc.d/postfix
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/postfix Wed Apr 26 05:28:03 2000 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index