Mailinglist Archive: opensuse-buildservice (227 mails)

< Previous Next >
[opensuse-buildservice] useless screenrc commands in obsworker
  • From: Robert Schiele <rschiele@xxxxxxxxx>
  • Date: Sat, 27 Jan 2007 22:59:11 +0100
  • Message-id: <20070127215911.GF3767@xxxxxxxxxxxxxxxxxx>
Hello!

The first to lines added to screenrc in obsworker are useless because the
script removes the screenrc file again after setting them up. To fix this I
recommend the following patch:

Index: obsworker
===================================================================
--- obsworker (revision 62)
+++ obsworker (working copy)
@@ -40,6 +40,8 @@
rc_reset
case "$1" in
start)
+ rm -rf "$workerdir"
+ mkdir -p "$workerbootdir"
# reset screenrc
echo "zombie on" > $screenrc
echo "caption always" >> $screenrc
@@ -56,8 +58,6 @@
echo "Run $NUM obsworker using $ROOT"

# fetch worker sources from server
- rm -rf "$workerdir"
- mkdir -p "$workerbootdir"
pushd "$workerbootdir"
curl -q "$OBS_STORAGE_SERVER"/getworkercode | cpio --extract
ln -s . XML

Robert

--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:rschiele@xxxxxxxxx

"Quidquid latine dictum sit, altum sonatur."
< Previous Next >
Follow Ups