Path: utzoo!yunexus!spectrix!lsuc!dave From: dave@lsuc.uucp (David Sherman) Newsgroups: comp.mail.uucp Subject: Re: When the disk runneth over, UUCP keeps on sending. Summary: auto shutoff of uucico Message-ID: <1988Feb25.231353.10821@lsuc.uucp> Date: 26 Feb 88 04:13:51 GMT Article-I.D.: lsuc.1988Feb25.231353.10821 Posted: Thu Feb 25 23:13:51 1988 References: <1224@beowulf.UUCP> Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 17 root@beowulf.UUCP writes: > The question is, is there a way to get uucp to stop receiving >when the disk fills up? We use a homegrown shell script called "spoolfull". It looks at the output of df for the file system in which /usr/spool resides, and if it goes below a threshold (say 1Mb), runs "mv /usr/lib/uucp/uucico /usr/lib/uucp/uucico-stopped", then sends mail to the sysadmins. Trivial enough to write. If you're worried about the uucico currently running when uucico is stopped, get the PID out of ps(1) or the LCK..infeed file and kill it off. Run spoolfull from crontab every hour or whatever. David Sherman The Law Society of Upper Canada Toronto -- { uunet!mnetor pyramid!utai decvax!utcsri ihnp4!utzoo } !lsuc!dave