Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 19:07:59 -0500
From:      "Mezz bsdforums.org" <reigncracks@hotmail.com>
To:        piero@poprostu.pl
Cc:        gnome@freebsd.org
Subject:   Re: refreshing the menus [solution]
Message-ID:  <F62JobJRR1imk5YifVA000140a0@hotmail.com>

next in thread | raw e-mail | index | archive | help
<snip>
>Joe, thanks for help. You were right about me having, but not running
>fam. So here goes the solution:
>
>one need:
>$ grep fam /etc/rpc
>sgi_fam      391002          # file alteration monitor
>
>$ grep fam /etc/inetd.conf
>sgi_fam/1-2  stream  rpc/tcp  wait  root  /usr/local/bin/fam  fam
>
>This is a suggested solution. But if you don't need nor like to run
>inetd, one can run fam as daemon :
>
>$ more /usr/local/etc/rc.d/fam.sh.sample
>#!/bin/sh
>if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
>   echo "$0: Cannot determine the PREFIX" >&2
>   exit 1
>fi
>
>case "$1" in
>start)
>   [ -x ${PREFIX}/bin/fam ] && ( ${PREFIX}/bin/fam & ) && echo -n ' fam'
>   ;;
>stop)
>   killall fam && echo -n ' fam'
>   ;;
>*)
>   echo "Usage: `basename $0` {start|stop}" >&2
>   ;;
>esac
>exit 0
>
>It is also good to take a look at the /usr/local/etc/fam.conf and "man
>fam".
>
>BTW: FAM port for FreeBSD seems to install only the line into the
>/etc/rpc, the entry in inetd.conf or the start up script you have to
>make yourself.

Cool, thanks for create a startup script! My plan is going to use 
daemontools, which I always replace from inetd to daemontools/ucspi-tcp. I 
don't like inetd. ;-)

Cheers,
Mezz

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F62JobJRR1imk5YifVA000140a0>