Hello Again,

I am still having problems starting the pcscd on Linux Red Hat 7.3. Attached are two files that were generated as part of the ./configure of my pcsc-lite-1.1.1 build. I am suspicious that the build was not good. The one file is the configure run's log file. The other is the redirected output file.

Does there exist a Linux rpm for pcsc-lite-1.1.1 or pcsc-lite-1.1.2?

Sean, appears to be using pcsc-lite-1.1.2. Did I over look where the source is available for pcsc-lite-1.1.2?

Thanks.

-- Tammy

Date: Wed, 30 Oct 2002 10:59:37 -0500
To: [EMAIL PROTECTED]
From: Tammy M Blaser <[EMAIL PROTECTED]>
Subject: Re: [Muscle] Problems Starting pcscd on Linux

Sean,

Thanks for the recommendations.

-- Tammy

At 10:19 AM 10/30/2002 +0000, you wrote:
Hi Tammy,

> I am using the pcscd startup script (i.e. pcscd.startup start) but after
> executing the startup script, no such pcscd process gets started. When I
> use the script's status qualifier "pcscd.startup status" it comes back
> saying the pcscd dameon is dead and that the subsys is locked.

Your error just means that the process died without removing /var/lock/subsys/pcscd, e.g. "killall pcscd" was used rather than "service pcscd stop". I suspect that pcscd isn't starting because /tmp/pcsc/ wasn't removed when a previous instance crashed - I've had this plenty of times, for example if the system loses power suddenly. You could check the daemon's output with "pcscd -d stdout" to confirm this.

To work around this and make the startup script more Red Hat friendly (so I can use "service pcscd status"), please find my patch below. You may like to selectively use bits of this in your script as required. I'm not sure whether these changes are useful enough to be included in the next public release, but in my opinion there's no good reason why a machine losing power should require manual intervention to recover a crashed daemon.

HTH,

Sean.


--- pcsc-lite-1.1.2/doc/pcscd.startup 2002-07-01 21:14:09.000000000 +0100
+++ /etc/init.d/pcscd 2002-10-30 10:04:30.000000000 +0000
@@ -2,15 +2,12 @@
#
# pcscd Starts the pcscd Daemon
#
-#
# chkconfig: 2345 12 88
-
+# description: Smart card daemon

. /etc/init.d/functions

-[ -f /usr/local/sbin/pcscd ] || exit 0
-
-
+[ -f /usr/sbin/pcscd ] || exit 0

# Source config
PATH=/sbin:/bin:/usr/local/sbin:/usr/bin:/usr/sbin
@@ -20,14 +17,15 @@

start() {
echo -n $"Starting smart card daemon: "
- pcscd $SYSLOGD_OPTIONS
+ rm -rf /tmp/pcsc/ # clean up after crash
+ daemon pcscd $SYSLOGD_OPTIONS -d syslog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
return $RETVAL
}
stop() {
- echo -n $"Shutting down kernel logger: "
+ echo -n $"Shutting down smart card daemon: "
killproc pcscd
RETVAL=$?
echo


--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle
==================================================
Tammy M. Blaser
NASA John H. Glenn Research Center
Flight Software Engineering Organization 7750
Mail stop 86-11
216-433-2699 (office)
216-433-8269 (fax)
[EMAIL PROTECTED]
==================================================
==================================================
Tammy M. Blaser
NASA John H. Glenn Research Center
Flight Software Engineering Organization 7750
Mail stop 86-11
216-433-2699 (office)
216-433-8269 (fax)
[EMAIL PROTECTED]
==================================================

Attachment: config.log
Description: Binary data

Attachment: config.out
Description: Binary data

Reply via email to