Solved! At the end it was simple. Here's my solution for ubuntu 11.10 server, in this example I'm using vsftpd:
1. install schroot
2. create a startup script in /etc/init.d/
3. use update-rc.d
Code:
sudo apt-get install schroot
sudo touch /etc/init.d/my_ftp.sh
sudo nano /etc/init.d/my_ftp.sh
inside my_ftp.sh I wrote:
Code:
#!/bin/bash
schroot -c my_server vsftpd &
where my_server is just the entry label for /etc/schroot.conf, after editing that file you can list all chroots with schroot -l
Anyway, at this point create launch scripts:
Code:
sudo update-rc.d my_ftp.sh defaults 99
You will see an output related to init scripts creation. After that just reboot to test the server.
Reference:
- http://manpages.ubuntu.com/manpages/...schroot.1.html
- http://www.cyberciti.biz/tips/linux-...-boots-up.html
hope is useful and, please, advice if this is bad practice, bye
Bookmarks