Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2009 09:46:47 +0100
From:      chris scott <kraduk@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   backticks in rc.conf
Message-ID:  <d36406630907210146m4e84c7dbpd55776168a50090c@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
can i use backticks in rc.conf?

Basically i want a standard rc.conf and want to bind rsync to a specific ip

hence i want this in my rc.conf

rsyncd_flags="--config=/etc/rsyncd.conf --address="` ifconfig bce1 | grep
inet | awk '{print $2}'`

it works fine from the shell, however on reboot the address section doesnt
expand, or rather it goes blank


eg

Jul 20 16:56:37 X root: /etc/rc: DEBUG: run_rc_command: doit:
/usr/local/bin/rsync --config=/etc/rsyncd.conf --address= --daemon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d36406630907210146m4e84c7dbpd55776168a50090c>