# ll /etc/vz/conf/110.*
-rw-r--r-- 1 root root 1506 Jun 7 21:42 /etc/vz/conf/110.conf
-rwxr-xr-x 1 root root 32 Jun 14 14:54 /etc/vz/conf/110.mount
-rwxr-xr-x 1 root root 31 Jun 14 14:51 /etc/vz/conf/110.start
-rwxr-xr-x 1 root root 31 Jun 14 14:51 /etc/vz/conf/110.stop
# cat /etc/vz/conf/110.start
#!/bin/sh
touch /tmp/110.start
# cat /etc/vz/conf/110.stop
#!/bin/sh
touch /tmp/110.stop
# cat /etc/vz/conf/110.mount
#!/bin/sh
touch /tmp/110.mount
# vzctl --verbose stop 110
Running container script: /etc/vz/conf/110.stop
Stopping container ...
Container was stopped
Container is unmounted
# vzctl --verbose start 110
Starting container ...
Container is mounted
Adding IP address(es): xxxxxxxxxxxx
Running container script: /etc/vz/dists/scripts/redhat-add_ip.sh
Setting CPU units: 133345
Setting devices
Configuring meminfo: 2460736
Set hostname: mail.rover.pp.ru
Running container script: /etc/vz/dists/scripts/redhat-set_hostname.sh
Running container script: /etc/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
Running container script: /etc/vz/conf/110.start
Container start in progress...
# ll /tmp/110.*
-rw-r--r-- 1 root root 0 Jun 14 14:56 /tmp/110.mount
If I manually run scripts I get:
# /etc/vz/conf/110.stop
# /etc/vz/conf/110.start
# ll /tmp/110.*
-rw-r--r-- 1 root root 0 Jun 14 14:56 /tmp/110.mount
-rw-r--r-- 1 root root 0 Jun 14 14:57 /tmp/110.start
-rw-r--r-- 1 root root 0 Jun 14 14:57 /tmp/110.stop