jid and jname are numberic by default why? Can we change it ?

From: Philip M. Gollucci <pgollucci_at_gmail.com>
Date: Fri, 27 Jan 2012 17:08:13 +0000
All,

$ jls -nq | tail -1 | xargs -n1 | egrep '^(name|jid)='| xargs
jid=17 name=17

$ jls
   JID  IP Address      Hostname                      Path
     3  192.168.2.38    sid.dca1.rws                  /sid
    17  192.168.2.41    jubilee.dca1.rws              /jubilee

# jubilee/chef
jail_jubilee_hostname="jubilee.dca1.rws"
jail_jubilee_ip="192.168.2.41"
jail_jubilee_ip_multi0="192.168.2.42"
jail_jubilee_interface="bge1"
jail_jubilee_rootdir="/jubilee"
jail_jubilee_devfs_enable="YES"

From jexec(8):

DESCRIPTION
     The jexec utility executes command inside the jail identified by
its jid or name.

This works, but kind of defeats the point --
$ sudo jexec `jls |grep sid |awk '{print $1}'` /bin/bash



-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci_at_p6m7g8.com) c: 703.336.9354
Member,                           Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Director Operations,              Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


Received on Fri Jan 27 2012 - 16:37:57 UTC

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