Ignore:
Timestamp:
04/17/13 07:50:25 (22 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1
Children:
e50ac20
Parents:
89c5083
Message:

Use the correct names to start / stop jails when running from rc.d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/rc.d/startup.sh

    r1620346 r29c3581  
    2626for i in `ls -d .*.meta 2>/dev/null` 
    2727do 
    28   if [ -e "${i}/ip" -a -e "${i}/autostart" ] ; then 
    29    jIP=`cat ${i}/ip` 
    30    echo -e "Starting Jail (${jIP})...\c" 
    31    warden start "${jIP}" >/dev/null 2>/dev/null 
     28  if [ -e "${i}/id" -a -e "${i}/autostart" ] ; then 
     29   JAILNAME=`echo ${i}|sed 's|.meta$||'|sed 's|^.||'` 
     30   echo -e "Starting Jail (${JAILNAME})...\c" 
     31   warden start "${JAILNAME}" >/dev/null 2>/dev/null 
    3232   echo "Done" 
    3333  fi 
Note: See TracChangeset for help on using the changeset viewer.