usr bin env bash export PATH sbin bin usr sbin usr bin sudo vzctl rest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/usr/bin/env bash
export PATH="/sbin:/bin:/usr/sbin:/usr/bin";
sudo vzctl restart 106 \
&& sudo cat /root/nsup | sudo nsupdate \
&& sudo service nginx restart \
&& {
echo "All services restarted";
} \
|| {
echo "Warning! Not all services was restarted";
exit 1;
};
exit 0;