Changeset 4994f5cd


Ignore:
Timestamp:
11/01/13 19:58:16 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
f9bc298
Parents:
25ab455
Message:

Fix detection of some active jails

Thanks Adam!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/checkstatus.sh

    r1620346 r4994f5cd  
    3737# Check if anything is still mounted in this jail 
    3838hasmount="0" 
    39 for mountpoint in $(mount | grep -e '${JAILDIR}/' | cut -d" " -f3); do 
     39for mountpoint in $(mount | grep -e "${JAILDIR}/" | cut -d" " -f3); do 
    4040  hasmount="1" 
    4141done 
    4242 
    4343# Check if the jail is active 
    44 jls | grep ${JAILNAME}$ >/dev/null 2>/dev/null 
     44jls | grep "${JAILDIR}$" >/dev/null 2>/dev/null 
    4545if [ "$?" = "0" -o "$hasmount" = "1" ]; then 
    4646  exit 0 
Note: See TracChangeset for help on using the changeset viewer.