Look in correct rc.conf file.
Submitted by: Kevin Street <street@iname.com
This commit is contained in:
parent
905c3aead2
commit
f10c8b1a7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44008
@ -22,7 +22,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: periodic.8,v 1.7 1998/03/23 08:26:50 charnier Exp $
|
.\" $Id: periodic.8,v 1.8 1998/12/29 22:45:15 hoek Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd 13 August 1997
|
.Dd 13 August 1997
|
||||||
.Os FreeBSD 3.0
|
.Os FreeBSD 3.0
|
||||||
@ -86,7 +86,7 @@ The top level directory containing
|
|||||||
and
|
and
|
||||||
.Pa monthly
|
.Pa monthly
|
||||||
subdirectories which contain standard system periodic executables.
|
subdirectories which contain standard system periodic executables.
|
||||||
.It Pa /etc/rc.conf
|
.It Pa /etc/defaults/rc.conf
|
||||||
The
|
The
|
||||||
.Pa rc.conf
|
.Pa rc.conf
|
||||||
system registry contains a variable
|
system registry contains a variable
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $Id: periodic.sh,v 1.6 1998/12/29 22:48:54 hoek Exp $
|
# $Id: periodic.sh,v 1.7 1999/01/01 17:37:33 billf Exp $
|
||||||
#
|
#
|
||||||
# Run nightly periodic scripts
|
# Run nightly periodic scripts
|
||||||
#
|
#
|
||||||
@ -18,8 +18,11 @@ if [ $# -lt 1 ] ; then
|
|||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If possible, check /etc/rc.conf to see if there are additional dirs to check
|
# If possible, check the global system configuration file,
|
||||||
if [ -r /etc/rc.conf ] ; then
|
# to see if there are additional dirs to check
|
||||||
|
if [ -r /etc/defaults/rc.conf ]; then
|
||||||
|
. /etc/defaults/rc.conf
|
||||||
|
elif [ -r /etc/rc.conf ]; then
|
||||||
. /etc/rc.conf
|
. /etc/rc.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user