conf/89911 : [patch] /etc/rc.d/jail restart ignores command line
jail_list
Support (Rudy)
support at monkeybrains.net
Mon Dec 5 23:20:06 GMT 2005
The following reply was made to PR conf/89911; it has been noted by GNATS.
From: "Support (Rudy)" <support at monkeybrains.net>
To: bug-followup at FreeBSD.org, crapsh at 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}"
More information about the freebsd-bugs
mailing list