OpenVZ Forum


Home » General » Support » How to run a script on HN after VPS start
Re: How to run a script on HN after VPS start [message #8398 is a reply to message #8380] Sat, 18 November 2006 20:40 Go to previous messageGo to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
I have wanted to do this as well. Unfortunately I couldn't find a clean way to run a command in the HN context after a VE starts. What I did was use cron, running a script each minute to accomplish whatever commands you need run. ie, after you run whatever command you are referring to, something probably changes. "check" to see if that change was made with the cron script, if it wasn't, run the command. In my case, it was adding some --devnodes to the started VPS, but I didn't want to maintain a mount-script file for each VE. Hope this helps.

-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters

[Updated on: Sat, 18 November 2006 20:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* 2.6.16 kernel compilation fails
Next Topic: Confixx on openvz VPS
Goto Forum:
  


Current Time: Mon Aug 05 22:22:19 GMT 2024

Total time taken to generate the page: 0.03118 seconds