NetBSD Problem Report #1161
From gnats Tue Jun 27 06:30:48 1995
Received: from sungear.mame.mu.OZ.AU (root@sungear.mame.mu.OZ.AU [128.250.209.2]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id GAA10213 for <gnats-bugs@gnats.netbsd.org>; Tue, 27 Jun 1995 06:30:45 -0400
Message-Id: <199506271031.UAA06704@splode.eterna.com.au>
Date: Tue, 27 Jun 1995 20:31:48 +1000
From: mrg@mame.mu.OZ.AU
Reply-To: mrg@mame.mu.OZ.AU
To: gnats-bugs@gnats.netbsd.org
Subject: NetBSD doesn't come with an exportfs(8) command.
X-Send-Pr-Version: 3.2
>Number: 1161
>Category: bin
>Synopsis: NetBSD doesn't come with an exportfs(8) command.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jun 27 06:35:02 +0000 1995
>Closed-Date: Wed Jun 17 10:37:26 +0000 1998
>Last-Modified: Wed Jun 17 10:38:08 +0000 1998
>Originator: matthew green
>Release: 20/6/95
>Organization:
bozotic softwar foundation
>Environment:
System: NetBSD splode.eterna.com.au 1.0A NetBSD 1.0A (_splode_) #235: Thu Jun 22 22:40:35 EST 1995 mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc
>Description:
to re-export the directories listed in /etc/exports, one must
kill -HUP `cat /var/run/mountd.pid`, which is annoying to type.
below is an exportfs script to do this for you. it might be
nice if it was in the source tree somewhere.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# exportfs
# exportfs/Makefile
# exportfs/exportfs.8
# exportfs/exportfs.sh
#
echo c - exportfs
mkdir -p exportfs > /dev/null 2>&1
echo x - exportfs/Makefile
sed 's/^X//' >exportfs/Makefile << 'END-of-exportfs/Makefile'
X# $NetBSD$
X
XMAN= exportfs.8
X
Xbeforeinstall:
X install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
X ${.CURDIR}/exportfs.sh ${DESTDIR}/sbin/exportfs
X
X.include <bsd.prog.mk>
END-of-exportfs/Makefile
echo x - exportfs/exportfs.8
sed 's/^X//' >exportfs/exportfs.8 << 'END-of-exportfs/exportfs.8'
X.\" $NetBSD$
X.\"
X.\" Copyright (c) 1995 Matthew Green.
X.\"
X.\" Redistribution and use in source and binary forms, with or without
X.\" modification, are permitted provided that the following conditions
X.\" are met:
X.\" 1. Redistributions of source code must retain the above copyright
X.\" notice, this list of conditions and the following disclaimer.
X.\" 2. Redistributions in binary form must reproduce the above copyright
X.\" notice, this list of conditions and the following disclaimer in the
X.\" documentation and/or other materials provided with the distribution.
X.\" 3. All advertising materials mentioning features or use of this software
X.\" must display the following acknowledgement:
X.\" This product includes software developed by Matthew Green
X.\" 4. Neither the name of the University nor the names of its contributors
X.\" may be used to endorse or promote products derived from this software
X.\" without specific prior written permission.
X.\"
X.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
X.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
X.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
X.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
X.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
X.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
X.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
X.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
X.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
X.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
X.\" SUCH DAMAGE.
X.\"
X.Dd June 27, 1995
X.Dt EXPORTFS 8
X.Os BSD 4.4
X.Sh NAME
X.Nm exportfs
X.Nd export a list of file systems.
X.Sh SYNOPSIS
X.Nm exportfs
X.Op Fl a
X.Sh DESCRIPTION
X.Nm Exportfs
XSends a SIGHUP signal to the running mountd(8) process by looking at the
X.Nm /var/run/mountd.pid
Xfile. The
X.Fl a
Xoption is provided for backwards compability with older versions of this
Xprogram.
X.Sh SEE ALSO
X.Xr mountd 8
END-of-exportfs/exportfs.8
echo x - exportfs/exportfs.sh
sed 's/^X//' >exportfs/exportfs.sh << 'END-of-exportfs/exportfs.sh'
X#! /bin/sh
X#
X# Copyright (c) 1995 Matthew Green.
X
XPF=/var/run/mountd.pid
Xif test $# -gt 0 -a "x$1" != "x-a"; then
X echo "Usage: exportfs [-a]"
X exit 1
Xfi
X
Xif test -f $PF; then
X kill -HUP `cat $PF`
X exit 0
Xelse
X echo "exportfs: Can't find $PF" 1>&2
X exit 1
Xfi
END-of-exportfs/exportfs.sh
exit
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: fair
State-Changed-When: Wed Jun 17 01:40:07 PDT 1998
State-Changed-Why:
This is the only PR filed on the lack of "exportfs" in three years.
Is this really worth committing to the source tree?
From: matthew green <mrg@eterna.com.au>
To: fair@NetBSD.ORG
Cc: gnats-admin@NetBSD.ORG
Subject: Re: bin/1161
Date: Wed, 17 Jun 1998 20:19:30 +1000
Synopsis: NetBSD doesn't come with an exportfs(8) command.
This is the only PR filed on the lack of "exportfs" in three years.
Is this really worth committing to the source tree?
not in it's current form. the script in that PR (IIRC) only does 'exportfs -a'
because i was too lazy to do kill -HUP `cat /var/run/mountd.pid`. i now have
a script called khup which when called as khup mountd, will do the above, that
i tend to use now instead.. feel free to close it :)
State-Changed-From-To: feedback->closed
State-Changed-By: fair
State-Changed-When: Wed Jun 17 03:37:26 PDT 1998
State-Changed-Why:
Submitter agrees this is not really necessary.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.