Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 23:41:36 +0100
From:      Piero <piero@poprostu.pl>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org
Subject:   Re: refreshing the menus [solution]
Message-ID:  <20030225234136.114348c8.piero@poprostu.pl>
In-Reply-To: <1046210659.310.89.camel@gyros>
References:  <20030224111739.6ea7431f.piero@poprostu.pl> <3E5AA8F4.80307@ruilopes.com> <20030225064949.GA691@martin.kdrache.org> <1046157046.48782.142.camel@shumai.marcuscom.com> <20030225101545.7c90b184.piero@poprostu.pl> <1046186008.310.0.camel@gyros> <20030225224145.5add46dc.piero@poprostu.pl> <1046210659.310.89.camel@gyros>

next in thread | previous in thread | raw e-mail | index | archive | help
W li=B6cie otrzymanym 25 Feb 2003 17:04:20 -0500 od Joe Marcus Clarke
<marcus@marcuscom.com> :

> > [cut]=20
> > > > > Like I said, if you install devel/fam, and configure it, the
> > > > > panel will refresh automatically.  Of course, you'll need to
> > > > > rebuild gnomevfs2 after installing fam.
> > > >=20
> > > > I got FAM, and it was installed before Gnome, but heh it doesn't
> > > > seem to work.
> > >=20
> > > Did you configure it?  It requires a bit of work.
> >=20
> > You mean FAM or the panel? I had a look at /usr/local/etc/fam.conf,
> > but it doesn't seem to have any connection to the panel issue. TIA.
>=20
> You have to get FAM running.  To do this, read the documentation that
> comes with the FAM port (or search the gnome@ archives).  Once FAM is
> up and running, rebuild gnomevfs2 so that FAM support is enabled, then
> logout and log back into GNOME.  You should see panel updates.

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=3D$(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.

---
 Piero
 piero@poprostu.pl


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?20030225234136.114348c8.piero>