/etc/rc.d/jail can't stop jail

Francisco Reyes lists at stringsutils.com
Wed Feb 22 20:19:32 PST 2006


Doing my first jail.
I am able to start the jail manually using the jail command and using 
/etc/rc.d/jail start, however I am unable to stop the jail using /etc/rc.d 
jail. I get the error 

Stopping jails:cannot stop jail mail. No jail id in /var/run

The name of the jail is "mail".
I also tried entering the jail and killing it..
jexec 4 csh
kill -KILL -1

That doesn't produce any errors.

My /etc/rc.conf is:
# jail specific settings for jail "mail" 
jail_one_rootdir="/data/jail/" 
jail_one_hostname="<hostname>" 
jail_one_ip="<ip>" 
jail_one_exec="/bin/sh /etc/rc" 
jail_one_devfs_enable="YES"  

Any suggestions?


More information about the freebsd-questions mailing list