Difference between revisions of "util-vserver:InitStyles"
From Linux-VServer
(→Configuration) |
|||
Line 5: | Line 5: | ||
** Guest's init process executes the rc scripts. | ** Guest's init process executes the rc scripts. | ||
** Therefore, you cannot watch the startup process. | ** Therefore, you cannot watch the startup process. | ||
− | ** However, shutdown or restart command | + | ** However, any shutdown or restart command should work |
* sysv (default) | * sysv (default) | ||
** Executes the runlevel scripts directly. | ** Executes the runlevel scripts directly. | ||
Line 11: | Line 11: | ||
** Slightly lighter weight since no additional init process is needed. | ** Slightly lighter weight since no additional init process is needed. | ||
** A fake init process is shown in the guest. | ** A fake init process is shown in the guest. | ||
− | ** You must use "reboot -f" or "halt -f" to restart or shut down from | + | ** You must use "reboot -f" or "halt -f" to restart or shut down from within the guest. |
* gentoo | * gentoo | ||
** Like sysv but works on Gentoo-based guests. | ** Like sysv but works on Gentoo-based guests. |
Revision as of 02:15, 14 December 2006
Guests can be started using one of the following init styles:
- plain
- Launches a unique init process for the guest.
- Guest's init process executes the rc scripts.
- Therefore, you cannot watch the startup process.
- However, any shutdown or restart command should work
- sysv (default)
- Executes the runlevel scripts directly.
- You can you can watch the startup process.
- Slightly lighter weight since no additional init process is needed.
- A fake init process is shown in the guest.
- You must use "reboot -f" or "halt -f" to restart or shut down from within the guest.
- gentoo
- Like sysv but works on Gentoo-based guests.
- Was deprecated but has been reinstated around util-vserver 0.30.212.
- minit
- Like plain init but smaller.
- minit must be installed on the guest.
- http://www.fefe.de/minit/
Configuration
The init style should go in a file containing a single word: sysv, plain, etc.
/etc/vservers/<NAME>/apps/init/style
If the file doesn't exist or the word isn't recognized, sysv will be used.