Re: rcNG & automonter(amd)

From: Mike Makonnen <mtm_at_identd.net>
Date: Sat, 7 Jun 2003 07:52:59 -0400
On Sat, 07 Jun 2003 13:13:15 +0300
Danny Braniss <danny_at_cs.huji.ac.il> wrote:

> hi,
>   I have a problem with /etc/rc.d/amd, because of the line
> 
> 	command_args="&"
> 
> ${amd_program} gets run in the background, ldconfig failes to cache libraries
> in /usr/local/lib (which is automounted :-)
> 
>   Is there realy a need for the "&"? amd will background itself after it's
>   done
> with the initialization stage anyway - and if not then it probably means
> trouble.

This may have been because of a missed merge from rcOG. How does the following
work for you?

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm_at_identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm_at_FreeBSD.Org| FreeBSD - The Power To Serve

Index: etc/rc.d/amd
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/amd,v
retrieving revision 1.9
diff -u -r1.9 amd
--- etc/rc.d/amd	12 Oct 2002 10:31:31 -0000	1.9
+++ etc/rc.d/amd	7 Jun 2003 11:49:26 -0000
_at__at_ -18,7 +18,6 _at__at_
 case ${OSTYPE} in
 FreeBSD)
 	start_precmd="amd_precmd"
-	command_args="&"
 	;;
 NetBSD)
 	command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid'
_at__at_ -56,6 +55,7 _at__at_
 				warn 'amd will not load without arguments'
 				return 1
 			fi
+			rc_flags="${rc_flags} &"
 			;;
 		*)
 			rc_flags="-p ${rc_flags} > /var/run/amd.pid 2> /dev/null" \
Received on Sat Jun 07 2003 - 02:53:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC