OpenVZ template needs command after build? [message #51258] |
Wed, 26 March 2014 10:32 |
|
postcd
Messages: 73 Registered: April 2013
|
Member |
|
|
Hello,
i have an OpenVZ default contrib template and on it installed "vncserver" application.
Issue is that "vncserver" when launched it has an pid file:
root@kcgbqjnv:~/.vnc# ls -la
total 28
drwx------ 2 root root 4096 Mar 26 10:04 .
drwx------ 16 root root 4096 Mar 26 10:04 ..
-rw------- 1 root root 8 Mar 26 10:17 passwd
-rw-r--r-- 1 root root 1115 Apr 8 2013 server:1.log
-rwxr-xr-x 1 root root 266 Apr 8 2013 xstartup
-rw-r--r-- 1 root root 463 Mar 26 10:04 [b]zzz:1.log[/b]
-rw-r--r-- 1 root root 5 Mar 26 10:04 [b]zzz:1.pid[/b]
zzz is hostname which is automatically used during vncserver startup.
So as you can see, i need to delete these *zzz* files and start vnc server AUTOMATICALLY AFTER OPENVZ TEMPLATE IS BUILT TO A NEW VM.
Please how can i achieve this task?
thank you
-------
my idea is to create cron script which will do taks and delete itself.. so when template is applied to vm, it will do the job and maybe delete itself?
[Updated on: Wed, 26 March 2014 12:35] Report message to a moderator
|
|
|