summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglass <glass@NetBSD.org>1993-04-03 01:12:21 +0000
committerglass <glass@NetBSD.org>1993-04-03 01:12:21 +0000
commitb3d044e80e73f09820c313eb2a701ef7e190f658 (patch)
treeaa391924d70a7d7052bf6a63459b9255717aba4c
parent0ec557d9c9763dcf505a9e8a2cc7fd7fd5c52e03 (diff)
Added /etc/rpc for librpc support
fixed crontab so it works (oops) fixed /etc/daily whatis.db support
-rw-r--r--etc/Makefile2
-rw-r--r--etc/crontab6
-rw-r--r--etc/daily13
-rw-r--r--etc/rpc33
4 files changed, 45 insertions, 9 deletions
diff --git a/etc/Makefile b/etc/Makefile
index d883a58aeba..009e1ef9bb9 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -8,7 +8,7 @@ BIN1= aliases csh.cshrc csh.login csh.logout daily dm.conf \
ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \
man.conf monthly motd myname netstart phones printcap protocols rc \
rc.local remote security services shells syslog.conf ttys weekly \
- etc.${MACHINE}/disktab
+ etc.${MACHINE}/disktab rpc
# -rw-rw-rw-
BIN2= motd
diff --git a/etc/crontab b/etc/crontab
index aca753fae28..3bec5032735 100644
--- a/etc/crontab
+++ b/etc/crontab
@@ -7,6 +7,6 @@ HOME=/var/log
#minute hour mday month wday command
#
#0/15 * * * * /usr/libexec/atrun
-0 2 * * * /etc/daily > /var/log/daily.out 2>&1
-30 3 * * 6 /etc/weekly > /var/log/weekly.out 2>&1
-30 5 1 * * /etc/monthly > /var/log/monthly.out 2>&1
+0 2 * * * sh /etc/daily
+30 3 * * 6 sh /etc/weekly
+30 5 1 * * sh /etc/monthly
diff --git a/etc/daily b/etc/daily
index 00d379dc23d..ba027b8b722 100644
--- a/etc/daily
+++ b/etc/daily
@@ -87,12 +87,15 @@ echo ""
echo "Running calendar:"
calendar -a
-if [ -d /usr/share/man -a -f /usr/share/man/makewhatis.sed ]; then
echo ""
-echo "Updating 'whatis' database:"
-cd /usr/share/man
-cat cat?/*.0 cat?/`machine`/*.0 | sed -f /usr/share/man/makewhatis.sed > /usr/share/man/whatis.db
-cd /
+echo "Making 'whatis' database:"
+if [ -d /usr/share/man -a -f /usr/share/man/makewhatis.sed ]; then
+ for file in `find /usr/share/man -type f -name '*.0' -print`; do \
+ sed -n -f /usr/share/man/makewhatis.sed $file; \
+ done | sort -u > /tmp/whatis.db.$$
+ cp /tmp/whatis.db.$$ /usr/share/man/whatis.db
+ chmod 644 /usr/share/man/whatis.db
+ rm -f /tmp/whatis.db.$$
fi
echo ""
diff --git a/etc/rpc b/etc/rpc
new file mode 100644
index 00000000000..bebfb51b731
--- /dev/null
+++ b/etc/rpc
@@ -0,0 +1,33 @@
+#
+# rpc 88/08/01 4.0 RPCSRC; from 1.12 88/02/07 SMI
+#
+portmapper 100000 portmap sunrpc
+rstatd 100001 rstat rstat_svc rup perfmeter
+rusersd 100002 rusers
+nfs 100003 nfsprog
+ypserv 100004 ypprog
+mountd 100005 mount showmount
+ypbind 100007
+walld 100008 rwall shutdown
+yppasswdd 100009 yppasswd
+etherstatd 100010 etherstat
+rquotad 100011 rquotaprog quota rquota
+sprayd 100012 spray
+3270_mapper 100013
+rje_mapper 100014
+selection_svc 100015 selnsvc
+database_svc 100016
+rexd 100017 rex
+alis 100018
+sched 100019
+llockmgr 100020
+nlockmgr 100021
+x25.inr 100022
+statmon 100023
+status 100024
+bootparam 100026
+ypupdated 100028 ypupdate
+keyserv 100029 keyserver
+tfsd 100037
+nsed 100038
+nsemntd 100039