From 9e697c360d8931a602579e2bdf85fa42c5d47808 Mon Sep 17 00:00:00 2001 From: glass Date: Sat, 3 Apr 1993 01:12:21 +0000 Subject: [PATCH] Added /etc/rpc for librpc support fixed crontab so it works (oops) fixed /etc/daily whatis.db support --- etc/Makefile | 2 +- etc/crontab | 6 +++--- etc/daily | 13 ++++++++----- etc/rpc | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 etc/rpc diff --git a/etc/Makefile b/etc/Makefile index d883a58aeba2..009e1ef9bb92 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 aca753fae28e..3bec50327356 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 00d379dc23df..ba027b8b7229 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 000000000000..bebfb51b731a --- /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