diff options
author | pjd <pjd@FreeBSD.org> | 2005-08-07 22:38:41 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-08-07 22:38:41 +0000 |
commit | d369af7dc06e6c6eaa7036cb69febe03b69bde1c (patch) | |
tree | e58198d5e20205914adecb34dd892b51ede76346 /etc/rc.d/jail | |
parent | 68bd5d24d16b026fe35280d77337e5a9341c1ade (diff) | |
download | FreeBSD-src-d369af7dc06e6c6eaa7036cb69febe03b69bde1c.zip FreeBSD-src-d369af7dc06e6c6eaa7036cb69febe03b69bde1c.tar.gz |
Allow to give more than one jail's name, eg.:
# /etc/rc.d/jail start www mail
MFC after: 3 days
Diffstat (limited to 'etc/rc.d/jail')
-rw-r--r-- | etc/rc.d/jail | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index e9dad2c..807550b 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -239,5 +239,9 @@ jail_stop() } load_rc_config $name -[ -n "$2" ] && jail_list="$2" -run_rc_command "$1" +cmd="$1" +if [ $# -gt 0 ]; then + shift +fi +[ -n "$*" ] && jail_list="$*" +run_rc_command "${cmd}" |