Hello Kalev,

Some more questions :-)

2011/6/25 Kalev Lember <[email protected]>:
> diff --git a/PCSC/etc/pcscd.service.in b/PCSC/etc/pcscd.service.in
> new file mode 100644
> index 0000000..4800d32
> --- /dev/null
> +++ b/PCSC/etc/pcscd.service.in
> @@ -0,0 +1,13 @@
> +[Unit]
> +Description=PC/SC Smart Card Daemon
> +Requires=pcscd.socket
> +After=syslog.target
> +
> +[Service]
> +ExecStart=@sbindir_exp@/pcscd -f
> +ExecReload=@sbindir_exp@/pcscd -H
> +StandardOutput=syslog
> +
> +[Install]
> +WantedBy=multi-user.target
> +Also=pcscd.socket

Why do you have "WantedBy=multi-user.target"?
The idea is to have pcscd started on demand using the socket
activation mechanism. I do not want to have pcscd started at boot, but
only on demand.
So I propose to remove the line.

I am no sure the line "Also=pcscd.socket" is needed. I removed it
without any problem.

I played with systemd and what I was missing is that I need to enable
and start the pcscd.socket using:
$ sudo systemctl enable pcscd.socket
$ sudo systemctl start pcscd.socket


I also added the --auto-exit option to pcscd so that the daemon will
exit when no more needed.
The daemon is started when needed using the systemd socket activation
method and will exit automatically when not needed.


Comments?

Bye,

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to