wok-stable view ovz-web-panel/stuff/owp-1.7.u @ rev 9199
Up: xorg-util-macros to 1.12.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Mar 10 10:44:00 2011 +0000 (2011-03-10) |
parents | |
children |
line source
1 --- ovz-web-panel-ori/app/models/hardware_server.rb Fri Nov 19 18:54:08 2010
2 +++ ovz-web-panel/app/models/hardware_server.rb Fri Dec 31 23:59:40 2010
3 @@ -174,7 +174,7 @@
4 end
6 def sync_backups
7 - backups_list = rpc_client.exec('ls', "--block-size=M -s #{backups_dir}")['output']
8 + backups_list = rpc_client.exec('ls', "-h -s #{backups_dir}")['output']
9 backups_list = backups_list.split("\n")
10 # remove totals line
11 backups_list.shift
12 --- ovz-web-panel-ori/script/owp Mon Oct 25 19:09:40 2010
13 +++ ovz-web-panel/script/owp Sat Jan 1 01:08:42 2011
14 @@ -61,7 +61,7 @@
16 stop() {
17 echo "Stopping OpenVZ Web Panel server"
18 - PANEL_APP_PID=`ps auxww | grep ruby | grep script/server | awk '{ print $2 }'`
19 + PANEL_APP_PID=`ps | grep ruby | grep script/server | awk '{ print $1 }'`
20 [ -n "$PANEL_APP_PID" ] && kill -2 $PANEL_APP_PID
21 [ "$ENVIRONMENT" = "HW-NODE" ] && ruby $INSTALL_DIR/utils/hw-daemon/hw-daemon.rb stop
22 ruby $INSTALL_DIR/utils/watchdog/watchdog.rb stop