[csw-devel] SF.net SVN: opencsw:[440] catalog_signatures/bin/daemon_init
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Jul 21 05:13:26 CEST 2011
Revision: 440
http://opencsw.svn.sourceforge.net/opencsw/?rev=440&view=rev
Author: bdwalton
Date: 2011-07-21 03:13:26 +0000 (Thu, 21 Jul 2011)
Log Message:
-----------
rework daemon_init script to run screen under gpg-agent directly; export app_ vars for use by other scripts
Signed-off-by: Ben Walton <bwalton at opencsw.org>
Modified Paths:
--------------
catalog_signatures/bin/daemon_init
Modified: catalog_signatures/bin/daemon_init
===================================================================
--- catalog_signatures/bin/daemon_init 2011-07-21 03:13:07 UTC (rev 439)
+++ catalog_signatures/bin/daemon_init 2011-07-21 03:13:26 UTC (rev 440)
@@ -2,7 +2,14 @@
unset DISPLAY
-APPHOME=/home/bwalton/catalog_signature
-rm ${APPHOME}/tmp/gpg-agent.conf
+APP_HOME=/home/bwalton/catalog_signature
+APP_BIN=${APP_HOME}/bin
+APP_GPG=${APP_HOME}/etc/gpg
+APP_TMP=${APP_HOME}/tmp
+APP_GPG_ENV=${APP_TMP}/gpg-agent.conf
-exec screen -c ${APPHOME}/etc/screenrc -p 0
+export APP_HOME APP_GPG APP_TMP APP_GPG_ENV
+
+rm -f ${APP_GPG_ENV}
+
+gpg-agent --daemon --homedir "${APP_GPG}" --write-env-file "${APP_GPG_ENV} screen -c ${APP_HOME}/etc/screenrc -p 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list