Revision: 3994
Author: hans
URL: http://bknr.net/trac/changeset/3994
More minor corrections.
U trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
U trunk/projects/bos/cert-daemon/cert-daemon.sh
Modified: trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
===================================================================
--- trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:46:10 UTC (rev 3993)
+++ trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:55:19 UTC (rev 3994)
@@ -5,11 +5,11 @@
CHECKOUT=/home/bknr/bknr-svn/projects/bos/cert-daemon
hostname=`hostname`
-cd $HOME
+cd $CERTS
while true
do
sh $CHECKOUT/cert-daemon.sh
mail -s "Cert daemon on $hostname crashed" hans < /dev/null
sleep 5
-done
\ No newline at end of file
+done
Modified: trunk/projects/bos/cert-daemon/cert-daemon.sh
===================================================================
--- trunk/projects/bos/cert-daemon/cert-daemon.sh 2008-10-14 20:46:10 UTC (rev 3993)
+++ trunk/projects/bos/cert-daemon/cert-daemon.sh 2008-10-14 20:55:19 UTC (rev 3994)
@@ -48,4 +48,4 @@
gen_certs `echo $job | perl -pe 's|.*-spool/(.*)-(.*).fdf|$1 $2|'`
done
fi
-done
\ No newline at end of file
+done
Revision: 3992
Author: hans
URL: http://bknr.net/trac/changeset/3992
Fix pathnames again
U trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
Modified: trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
===================================================================
--- trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:14:36 UTC (rev 3991)
+++ trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:15:23 UTC (rev 3992)
@@ -2,14 +2,14 @@
export PATH=/bin:/usr/bin:/usr/local/bin
CERTS=/home/bknr/certs
-CHECKOUT=/home/bknr/bknr-svn/projects/bos
+CHECKOUT=/home/bknr/bknr-svn/projects/bos/cert-daemon
hostname=`hostname`
cd $HOME
while true
do
- sh $CHECKOUT/gen-cert.sh
+ sh $CHECKOUT/cert-daemon.sh
mail -s "Cert daemon on $hostname crashed" hans < /dev/null
sleep 5
done
\ No newline at end of file
Revision: 3991
Author: hans
URL: http://bknr.net/trac/changeset/3991
Put some path names in.
U trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
Modified: trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
===================================================================
--- trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:11:44 UTC (rev 3990)
+++ trunk/projects/bos/cert-daemon/cert-daemon-driver.sh 2008-10-14 20:14:36 UTC (rev 3991)
@@ -1,14 +1,15 @@
#!/bin/sh
export PATH=/bin:/usr/bin:/usr/local/bin
-HOME=/home/bknr/certs
+CERTS=/home/bknr/certs
+CHECKOUT=/home/bknr/bknr-svn/projects/bos
hostname=`hostname`
cd $HOME
while true
do
- sh gen-cert.sh
+ sh $CHECKOUT/gen-cert.sh
mail -s "Cert daemon on $hostname crashed" hans < /dev/null
sleep 5
done
\ No newline at end of file
Revision: 3990
Author: hans
URL: http://bknr.net/trac/changeset/3990
Rewrote cert daemon in bourne shell, handle two-page certificate.
U trunk/projects/bos/Makefile
A trunk/projects/bos/cert-daemon/
A trunk/projects/bos/cert-daemon/cert-daemon-driver.sh
A trunk/projects/bos/cert-daemon/cert-daemon.sh
D trunk/projects/bos/cert-daemon/fake-urkunde-testdaten.fdf
D trunk/projects/bos/cert-daemon/fake-urkunde.pdf
D trunk/projects/bos/cert-gen/
U trunk/projects/bos/m2/bos.m2.asd
D trunk/projects/bos/m2/cert-daemon.lisp
U trunk/projects/bos/screenrc
Change set too large, please see URL above
Revision: 3989
Author: hans
URL: http://bknr.net/trac/changeset/3989
Change CONTRACT-CERTIFICATES-GENERATED-P so that only the download
certificate is checked for existence. The print certificate is
deleted after is has been mailed out.
U trunk/projects/bos/m2/cert-daemon.lisp
U trunk/projects/bos/m2/m2.lisp
Modified: trunk/projects/bos/m2/cert-daemon.lisp
===================================================================
--- trunk/projects/bos/m2/cert-daemon.lisp 2008-10-14 10:37:34 UTC (rev 3988)
+++ trunk/projects/bos/m2/cert-daemon.lisp 2008-10-14 12:21:45 UTC (rev 3989)
@@ -47,6 +47,12 @@
(format "Error generating certificate from file ~A: ~A~%" fdf-pathname e)))))
(defun generate-certs ()
+ ;; Mail certificates need to be generated first, then download-only
+ ;; certificates, because the CONTRACT-CERTIFICATES-GENERATED-P
+ ;; function only checks for the existence of the download
+ ;; certificate file. The mail certificates are deleted after they
+ ;; have been sent by mail, so we cannot check for both files in said
+ ;; routine.
(fill-forms *cert-mail-directory* *cert-mail-template*)
(fill-forms *cert-download-directory* *cert-download-template*)
(fill-forms *receipt-mail-directory* *receipt-mail-template*)
Modified: trunk/projects/bos/m2/m2.lisp
===================================================================
--- trunk/projects/bos/m2/m2.lisp 2008-10-14 10:37:34 UTC (rev 3988)
+++ trunk/projects/bos/m2/m2.lisp 2008-10-14 12:21:45 UTC (rev 3989)
@@ -359,9 +359,7 @@
(format nil "/certificate/~A" (store-object-id contract)))
(defmethod contract-certificates-generated-p (contract)
- (and (probe-file (contract-pdf-pathname contract))
- (or (contract-download-only-p contract)
- (probe-file (contract-pdf-pathname contract :print t)))))
+ (probe-file (contract-pdf-pathname contract)))
(defmethod contract-delete-certificate-files (contract)
(ignore-errors