Browse Source

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@
OPENBSD_5_3
ajacoutot 12 years ago
parent
commit
8ef813d63b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/etc/rc.d/mountd

+ 3
- 1
src/etc/rc.d/mountd View File

@ -1,11 +1,13 @@
#!/bin/sh #!/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" daemon="/sbin/mountd"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
rc_stop=NO
rc_pre() { rc_pre() {
[ -s /etc/exports ] && grep -qv '^#' /etc/exports && \ [ -s /etc/exports ] && grep -qv '^#' /etc/exports && \
rm -f /var/db/mountdtab && \ rm -f /var/db/mountdtab && \


Loading…
Cancel
Save