[Piuparts-devel] connecting to the slave screen
Andreas Beckmann
debian at abeckmann.de
Fri Jan 25 02:07:26 UTC 2013
Hi Holger,
another question: does this trapping work at all?
trap "cat $SCREENLOG | mail -s 'slave abnormaly ended' piupartsm ; rm
$SCREENLOG; exit" TERM EXIT
screen -L -d -m -S $SESSIONNAME su - piupartss -c "cd
/org/piuparts.debian.org/slave && PYTHONPATH=$PYTHONPATH python
../share/piuparts/piuparts-slave"
trap - TERM EXIT
I would expect this only to send a mail if the screen command actually
fails, but this is rare for a background daemon
Andreas
More information about the Piuparts-devel
mailing list