Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2005 23:20:06 GMT
From:      "Support (Rudy)" <support@monkeybrains.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/89911 : [patch] /etc/rc.d/jail restart ignores command line jail_list
Message-ID:  <200512052320.jB5NK6QD040412@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/89911; it has been noted by GNATS.

From: "Support (Rudy)" <support@monkeybrains.net>
To: bug-followup@FreeBSD.org, crapsh@monkeybrains.net
Cc:  
Subject: Re: conf/89911 : [patch] /etc/rc.d/jail restart ignores command line
 jail_list
Date: Mon, 05 Dec 2005 15:15:50 -0800

 I forgot some quotes and made the comment easier to read.
 Spefically the quotes in this line:
     [ -n "$jail_list" ]
 
 Here is the new diff:
 
 --- usr/src/etc/rc.d/jail       Tue Aug 16 01:43:06 2005
 +++ /etc/rc.d/jail      Mon Dec  5 15:11:13 2005
 @@ -248,4 +248,15 @@
          shift
   fi
   [ -n "$*" ] && jail_list="$*"
 +
 +# Store the jail_list passed from the command line in an environment 
 variable.
 +# Check for the varibable reset the jail_list if found.
 +if [ -n "$_jail_restart_list" ]; then
 +       jail_list=$_jail_restart_list
 +fi
 +if [ $cmd = 'restart' ] && [ -n "$jail_list" ]; then
 +       _jail_restart_list=$jail_list;
 +       export _jail_restart_list
 +fi
 +
   run_rc_command "${cmd}"



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