A jail with a dash in its name

Christer Solskogen christer.solskogen at gmail.com
Tue Dec 21 13:21:02 UTC 2010


On Tue, Dec 21, 2010 at 1:54 PM, Da Rock
<freebsd-questions at herveybayaustralia.com.au> wrote:

> However, whether or not a hyphen is allowed in the jail name is another
> matter. Yes a hyphen is allowed in a hostname, but in the rc.conf the
> hostname is set in a string (as mentioned before). Also, the jail name and
> hostname don't need to be the same thing.

Hence my email :-)

This is how my rc.conf looks now:
#jail configuration for forest-friend
jail_forest-friend_rootdir="/usr/jails/forest-friend"
jail_forest-friend_hostname="forest-friend"
jail_forest-friend_ip="192.168.0.15"

But still:
[root at cheer /usr/local/share/jailcfg/templates/default/etc]# /etc/rc.d/jail
/etc/rc.conf: jail_forest-friend_rootdir=/usr/jails/forest-friend: not found
jail_forest-friend_hostname=forest-friend: not found
jail_forest-friend_ip=192.168.0.15: not found
Usage: /etc/rc.d/jail [fast|force|one](start|stop|restart|rcvar)

-- 
chs,


More information about the freebsd-questions mailing list