Le 26.12.2006, à 16:10:25, Steinar H. Gunderson a écrit:
> Actually, I think I know what is happening. Sometimes my machine does not
> properly wake from resume, so I have to hard-reboot it; that leaves the pid
> and pub files. Similarly, any other unclean shutdown will probably do the
> same.

Files in /var/run/ should be removed by /etc/init.d/bootclean called by
/etc/rcS.d/S36mountall-bootclean.sh and
/etc/rcS.d/S46mountnfs-bootclean.sh

I guess you have a _strange_ configuration if /var/run/ is not cleaned
at boot on your system. I don't know if it should be supported.

> Nevertheless I believe having start call restart and restart call start is a
> really bad idea, especially as the loop spawns new processes all the time and
> eventually kills your entire machine if you don't stop it. I really cannot
> find any good reason why it should be that way.

What should happen if /etc/init.d/pcscd start is called when pcscd is
already running? Just do nothing?

I will try to reuse code from /etc/init.d/skeleton as suggested in the
Debian Policy [1].

Bye,


[1] http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit

-- 
 Dr. Ludovic Rousseau                        [EMAIL PROTECTED]
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --

Reply via email to