Browse code

move back to nova.sh method of configuring screen

instead of overwriting screenrc (which is useful for new VMs), we manually set
the screen status line - fixes bug 902297

Change-Id: I507dc36e85e2bc3635503cde426bab8a2e966f06

Jesse Andrews authored on 2011/12/11 06:55:44
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-hardstatus on
2
-hardstatus alwayslastline
3
-hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G}%H %{..Y}%d/%m %c"
4
-
5
-defscrollback 10240
6
-
7
-vbell off
8
-startup_message off
9
-
... ...
@@ -569,10 +569,6 @@ if [[ "$ENABLED_SERVICES" =~ "quantum" ]]; then
569 569
     cd $QUANTUM_DIR; sudo python setup.py develop
570 570
 fi
571 571
 
572
-# Add a useful screenrc.  This isn't required to run openstack but is we do
573
-# it since we are going to run the services in screen for simple
574
-cp $FILES/screenrc ~/.screenrc
575
-
576 572
 # Syslog
577 573
 # ---------
578 574
 
... ...
@@ -1122,6 +1118,8 @@ function screen_it {
1122 1122
 # create a new named screen to run processes in
1123 1123
 screen -d -m -S stack -t stack
1124 1124
 sleep 1
1125
+# set a reasonable statusbar
1126
+screen -r stack -X hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %= %H"
1125 1127
 
1126 1128
 # launch the glance registry service
1127 1129
 if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then