[Piuparts-commits] rev 721 - piatti/home/piupartss/bin
Holger Levsen
holger at alioth.debian.org
Wed Nov 10 17:47:23 UTC 2010
Author: holger
Date: 2010-11-10 17:47:18 +0000 (Wed, 10 Nov 2010)
New Revision: 721
Modified:
piatti/home/piupartss/bin/slave_join
Log:
improve usability :)
Modified: piatti/home/piupartss/bin/slave_join
===================================================================
--- piatti/home/piupartss/bin/slave_join 2010-11-10 17:39:23 UTC (rev 720)
+++ piatti/home/piupartss/bin/slave_join 2010-11-10 17:47:18 UTC (rev 721)
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2009 Holger Levsen (holger at layer-acht.org)
+# Copyright 2009-2010 Holger Levsen (holger at layer-acht.org)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
@@ -20,5 +20,14 @@
# reattach to an existing slave session
#
set -e
-screen -R -S piuparts-slave-screen
+SCREENLOG=/org/piuparts.debian.org/slave/screenlog.0
+
+if [ -f $SCREENLOG ] ; then
+ screen -R -S piuparts-slave-screen
+else
+ echo "$SCREENLOG does not exist, slave not running!"
+ echo
+ echo "ps faxu | grep piuparts"
+ ps faxu | grep piuparts
+fi
More information about the Piuparts-commits
mailing list