rcNG & automonter(amd)

Mike Makonnen mtm at identd.net
Sat Jun 7 04:53:03 PDT 2003


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
@@ -18,7 +18,6 @@
 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'
@@ -56,6 +55,7 @@
 				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" \


More information about the freebsd-current mailing list