Subject: Re: misc/35534: /etc/rc.d/amd does not set /var/run/amd.pid
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas_Hallmann <hallmann@ahatec.de>
List: netbsd-bugs
Date: 02/01/2007 14:35:02
The following reply was made to PR misc/35534; it has been noted by GNATS.

From: Andreas_Hallmann <hallmann@ahatec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/35534: /etc/rc.d/amd does not set /var/run/amd.pid
Date: Thu, 1 Feb 2007 15:33:36 +0100

 On Thu, Feb 01, 2007 at 12:22:15PM +0000, Matt Fleming wrote:
 > On Thu, Feb 01, 2007 at 12:10:03PM +0000, Andreas_Hallmann wrote:
 > >  # grep command_args /etc/rc.d/amd 
 > >  command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid'
 > >  
 > 
 > This looks correct to me.
 > 
 > >  >  
 > >  >  # grep amd /etc/rc.conf 
 > >  >  amd=YES amd_flags="-F /etc/amd/master -l syslog:LOG_DAEMON" amd_dir=/amd
 > >  >  amd=YES amd_flags="-F /etc/amd/master -x all" amd_dir=/amd
 > 
 > I added both of these lines and still can't reproduce your problem. Are
 > the permissions correct for /var/run/amd.pid?
 > 
 hallmann@wawa 15:30:24 ~
 501: ls -l /var/run/amd.pid
 -rw-r--r--  1 root  wheel  0 Jan 20 17:33 /var/run/amd.pid
 > What does `ps ax | grep amd` show?
 > 
 hallmann@wawa 15:30:49 ~
 502: ps -ax | grep amd
   239 ?     Is     1:05.10 /usr/sbin/amd -F /etc/amd/master -x all -p -a /amd -F /etc/amd.conf 
  4698 ttypd R+     0:00.02 grep amd 
 
 > --mjf
 
 -- 
 NetBSD: If you happen to have any problem with your uptime.