Path: utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!mit-eddie!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!sco!rogerk From: rogerk@sco.COM (Roger Knopf 5502) Newsgroups: comp.unix.xenix Subject: Re: cron FIFO in mounted spool filesystem Keywords: cron FIFO spool Message-ID: <8224@scorn.sco.COM> Date: 20 Jul 90 19:52:56 GMT References: <732@wshb.csms.com> Sender: news@sco.COM Reply-To: rogerk@sco.COM (Roger Knopf 5502) Distribution: na Organization: The Santa Cruz Operation, Inc. Lines: 40 In article <732@wshb.csms.com> michaelb@wshb.csms.com ( WSHB Operations Eng) writes: >I'm trying to move my /usr/spool directory to a seperate filesystem on a >second hard disk in SCO XENIX 386 2.3.2. I didn't have any trouble >making the filesystem or getting it to mount. I created all of the >directories normally in /usr/spool, set it to automatically mount >at boot, and changed cron startup to the user daemons (/etc/rc.d/7) >so it would start after the filesystems were stable. I haven't tried >to run the system this way because I noticed there is a FIFO in >/usr/spool/cron that gets covered when I mount /dev/spool on /usr/spool. > >I had thought cron would create a new FIFO on startup and remove the old FIFO >on shutdown. Obviously I'm wrong. What does this FIFO do? Can I cover >it up with impunity, or will cron choke and puke because the FIFO is >gone? Is there some way I can trick link to link it across the filesystem >boundry? (What the hell is a FIFO anyway? This is one of those magic >things about unix I've never understood.) First: a FIFO is a named pipe. Programs (such as crontab) can write to it and other programs (such as cron) can read from it without knowing directly about each other as you would to establish a regular pipe. The FIFO is there for crontab to communicate with cron. You can make it in your new filesystem by doing: # /etc/mknod FIFO p # chown root FIFO # chgrp bin FIFO # chmod 755 FIFO or even easier, after you have mounted your spool file system: # cd / # /etc/fixperm -cs -dRTS /etc/perms/rts -- Roger Knopf SCO Consulting Services "The True Believers will...formulate uunet!sco!rogerk or rogerk@sco.com a message that even a monkey could 408-425-7222 (voice) 408-458-4227 (fax) understand." --Jeff Tye