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]
==================================================

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to