Editing
0115.html
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<div class="links"> '''[Vserver] vserver reboot ...:'''<br /> <span class="small">vserver development mailing list</span> <br /> [<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]] </div> <div align="center"> {| class="wikitable" border="2" width="100%" |- ! [[../|About this list]] ! [[date.html|Date view]] ! [[index.html|Thread view]] ! [[subject.html|Subject view]] ! [[author.html|Author view]] ! [[attachment.html|Attachment view]] |} </div> '''From:''' Herbert Poetzl ([mailto:herbert_at_13thfloor.at?Subject=Re:%20%5BVserver%5D%20vserver%20reboot%20... ''herbert_at_13thfloor.at''])<br /> '''Date:''' Sat 08 Nov 2003 - 01:30:35 GMT * '''Previous message:''' [[0114.html|Hubertus Franke: "[Vserver] Re: [ckrm-tech] [1 of 6] patch for core module"]] ----- Hi Folks!<br /> recently we had some issues with rebootmgr and<br /> after paul pointed out that there was a better<br /> solution around (for a while) I had a look at<br /> it, and made a patch for the development branch<br /> (the original work was done by Paul Sladen et al)<br /> how does this work?<br /> simple, in a context != 0/1, the sys_reboot<br /> invokes an userspace helper (similar to the<br /> usb hotplug), in this case /sbin/vshelper or<br /> whatever path is in /proc/sys/kernel/vshelper<br /> with the following command arguments and<br /> environment variables ...<br /> </sbin/vshelper> <ctx-id> <command> [<arg>]<br /> <command> = restart|halt|poweroff|restart2<br /> <arg> = argument to restart2 (could be empty)<br /> env['VS_CMD'] = the command as hex value<br /> env['VS_UID'] = uid inside the vserver<br /> env['VS_PID'] = pid inside the vserver<br /> LINUX_REBOOT_CMD_RESTART 0x01234567<br /> LINUX_REBOOT_CMD_HALT 0xCDEF0123<br /> LINUX_REBOOT_CMD_CAD_ON 0x89ABCDEF<br /> LINUX_REBOOT_CMD_CAD_OFF 0x00000000<br /> LINUX_REBOOT_CMD_POWER_OFF 0x4321FEDC<br /> LINUX_REBOOT_CMD_RESTART2 0xA1B2C3D4<br /> http://vserver.13thfloor.at/Experimental/patch-2.4.23-pre9-vs1.1.0-reboot.diff<br /> you can find related material at:<br /> http://www.paul.sladen.org/vserver/sys_reboot/<br /> (there is a schelper, which could be adapted<br /> for the userspace helper)<br /> please test it, and report any issues to me<br /> TIA,<br /> Herbert<br /> _______________________________________________<br /> Vserver mailing list<br /> [mailto:Vserver_at_list.linux-vserver.org?Subject=Re:%20%5BVserver%5D%20vserver%20reboot%20... Vserver_at_list.linux-vserver.org]<br /> http://list.linux-vserver.org/mailman/listinfo/vserver<br /> ----- * '''Previous message:''' [[0114.html|Hubertus Franke: "[Vserver] Re: [ckrm-tech] [1 of 6] patch for core module"]] <div align="center"> {| class="wikitable" border="2" width="100%" |- ! [[../|About this list]] ! [[date.html|Date view]] ! [[index.html|Thread view]] ! [[subject.html|Subject view]] ! [[author.html|Author view]] ! [[attachment.html|Attachment view]] |} </div> <div align="center"> [<nowiki/>[[../|Next/Previous Months]]] [<nowiki/>[http://www.solucorp.qc.ca/miscprj/s_context.hc Main vserver Project Homepage]] [<nowiki/>[http://www.solucorp.qc.ca/mlist/index.hc?list=vserver Howto Subscribe/Unsubscribe]] [<nowiki/>[http://www.paul.sladen.org/vserver/ Paul Sladen's vserver stuff]]<br /> <span class="small">Generated on Sat 08 Nov 2003 - 01:31:50 GMT by [http://www.hypermail.org/ hypermail 2.1.3]</span> </div>
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information