Execute command on VZ container start and stop

147 views Asked by At

Is there any way of executing a console command on the host machine when a specific VZ container is started (and/or stopped)? Something like in the /etc/network/interfaces where you can specify an on up and on down command.

1

There are 1 answers

0
24x7servermanagement On

Yes, You can setup the cron on your VPS to start the network service. You will have to setup the cron @reboot on your VPS.