From owner-freebsd-gnome Tue Feb 25 16: 8: 1 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D0B437B401 for ; Tue, 25 Feb 2003 16:08:00 -0800 (PST) Received: from hotmail.com (f62.sea2.hotmail.com [207.68.165.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3B4543F3F for ; Tue, 25 Feb 2003 16:07:59 -0800 (PST) (envelope-from reigncracks@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 25 Feb 2003 16:07:59 -0800 Received: from 68.103.37.247 by sea2fd.sea2.hotmail.msn.com with HTTP; Wed, 26 Feb 2003 00:07:59 GMT X-Originating-IP: [68.103.37.247] From: "Mezz bsdforums.org" To: piero@poprostu.pl Cc: gnome@freebsd.org Subject: Re: refreshing the menus [solution] Date: Tue, 25 Feb 2003 19:07:59 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 26 Feb 2003 00:07:59.0575 (UTC) FILETIME=[1F269670:01C2DD2B] Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >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