b254 Simple jail question - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old September 7th, 2009, 20:28
noobster noobster is offline
Junior Member
 
Join Date: Nov 2008
Posts: 79
Thanks: 1
Thanked 11 Times in 11 Posts
Default Simple jail question

I don't want my jails to start automatically on boot, but still be able to start them manually. How can I achieve that?
Reply With Quote
  #2  
Old September 7th, 2009, 20:39
vivek's Avatar
vivek vivek is offline
Member
 
Join Date: Nov 2008
Location: Hyper Space
Posts: 809
Thanks: 3
Thanked 184 Times in 102 Posts
Default

Remove the following line from /etc/rc.conf (however keep the rest of jail config lines)
Code:
jail_enable="YES"
To start manually type
Code:
/etc/rc.d/jail forcestart
/etc/rc.d/jail forcestart jailname
/etc/rc.d/jail forcerestart jailname
/etc/rc.d/jail forcerestop jailname
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/
Reply With Quote
  #3  
Old September 7th, 2009, 20:50
noobster noobster is offline
Junior Member
 
Join Date: Nov 2008
Posts: 79
Thanks: 1
Thanked 11 Times in 11 Posts
Default

Thanks! I knew I had to set jail_enable="NO", but I was not familiar with the 'force' commands.
Reply With Quote
  #4  
Old September 8th, 2009, 18:37
devel devel is offline
Junior Member
 
Join Date: Nov 2008
Location: Ukraine->Chernigov
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by vivek View Post
Remove the following line from /etc/rc.conf (however keep the rest of jail config lines)
Code:
jail_enable="YES"
To start manually type
Code:
/etc/rc.d/jail forcestart
/etc/rc.d/jail forcestart jailname
/etc/rc.d/jail forcerestart jailname
/etc/rc.d/jail forcerestop jailname
Actually
Code:
jail_enable="YES"
jail_list=""
is more obvious solution
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] question about webserver in jail wonslung Web & Network Services 15 November 27th, 2009 17:38
jail nullfs question wonslung General 7 June 18th, 2009 17:45
One more Jail/Network question.. osx-addict Firewalls 2 March 5th, 2009 01:51
simple question, just learning pk7 Firewalls 7 December 31st, 2008 00:31
Simple? PF question. Just learning neurosis Firewalls 11 November 20th, 2008 12:38


All times are GMT +1. The time now is 15:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0