Hisma
Explorer
- Joined
- Mar 23, 2013
- Messages
- 87
I have an annoying problem and was hoping someone can help me. (actually 2 problems, but if I can solve just one of the two, I'd be happy)
I have a jail that I want to mount some storage on so I can have some scripts run commands inside the jail and copy files to the "outside world".
The problem is that the jail has a different hostname than it's directory, and this happened b/c I recovered the jail from a previous install (warden gave the directory a horrible name, "OFF", when the hostname is "nginx"). So the gui sees the hostname "nginx", but can't resolve the hostname to the directory name, since the two are different.
I get around this by managing the jail from the command-line only. Easy enough, but if I mount storage using "mount_nullfs", the storage dissapears after reboot and I have to re-add it. Annoying because I can forget to remount.
How can I get the storage to be persistent after reboot?
Also, if someone knows how I can get my jail hostname to match the jail directory name, or vice versa, I'd really appreciate that as well. I don't want to break the jail though, and from the little research I did, messing with the jail hostname creates tons of headaches. If I could find a way to rename the jail directory from "OFF" to "nginx", that'd be awesome.
thanks!
I have a jail that I want to mount some storage on so I can have some scripts run commands inside the jail and copy files to the "outside world".
The problem is that the jail has a different hostname than it's directory, and this happened b/c I recovered the jail from a previous install (warden gave the directory a horrible name, "OFF", when the hostname is "nginx"). So the gui sees the hostname "nginx", but can't resolve the hostname to the directory name, since the two are different.
I get around this by managing the jail from the command-line only. Easy enough, but if I mount storage using "mount_nullfs", the storage dissapears after reboot and I have to re-add it. Annoying because I can forget to remount.
How can I get the storage to be persistent after reboot?
Also, if someone knows how I can get my jail hostname to match the jail directory name, or vice versa, I'd really appreciate that as well. I don't want to break the jail though, and from the little research I did, messing with the jail hostname creates tons of headaches. If I could find a way to rename the jail directory from "OFF" to "nginx", that'd be awesome.
thanks!