summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-01-26 08:00:12 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-01-26 08:00:12 +0000
commit3b78bd2481525635417ca0fc75396ef754c09171 (patch)
treecb4f7c6fea7fa7a38bb1c189e89928bdd7d411df
parente5d9be07a517265d166e672334cf8144017eb908 (diff)
Do not allow stopping/restarting mountd using the rc.d(8) framework;
if there is need to send a SIGTERM to mountd(8), it should be done manually as there is too much involved with RPC daemons to make it automagic. ok beck@
-rw-r--r--etc/rc.d/mountd4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index e9dd3e61604..3d3c020fc2f 100644
--- a/etc/rc.d/mountd
+++ b/etc/rc.d/mountd
@@ -1,11 +1,13 @@
#!/bin/sh
#
-# $OpenBSD: mountd,v 1.3 2012/08/14 07:43:57 ajacoutot Exp $
+# $OpenBSD: mountd,v 1.4 2013/01/26 08:00:11 ajacoutot Exp $
daemon="/sbin/mountd"
. /etc/rc.d/rc.subr
+rc_stop=NO
+
rc_pre() {
[ -s /etc/exports ] && grep -qv '^#' /etc/exports && \
rm -f /var/db/mountdtab && \