Hello Kalev,

2011/6/25 Kalev Lember <[email protected]>:
> ---
>  PCSC/Makefile.am          |    5 ++++-
>  PCSC/configure.in         |   32 ++++++++++++++++++++++----------
>  PCSC/etc/Makefile.am      |    9 +++++++++
>  PCSC/etc/pcscd.service.in |   13 +++++++++++++
>  PCSC/etc/pcscd.socket.in  |    8 ++++++++
>  5 files changed, 56 insertions(+), 11 deletions(-)
>  create mode 100644 PCSC/etc/Makefile.am
>  create mode 100644 PCSC/etc/pcscd.service.in
>  create mode 100644 PCSC/etc/pcscd.socket.in
>
[...]
> 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
> diff --git a/PCSC/etc/pcscd.socket.in b/PCSC/etc/pcscd.socket.in
> new file mode 100644
> index 0000000..6fc93da
> --- /dev/null
> +++ b/PCSC/etc/pcscd.socket.in
> @@ -0,0 +1,8 @@
> +[Unit]
> +Description=PC/SC Smart Card Daemon Activation Socket
> +
> +[Socket]
> +ListenStream=@ipcdir@/pcscd.comm
> +
> +[Install]
> +WantedBy=sockets.target

I have some questions:
- who is supposed to create the /var/run/pcscd/pcscd.comm socket? I
guess it is systemd.
- how to tell systemd to recreate the socket if it has been removed?

- do you think it is a good idea to use User=, Group= to start pcscd
as nobody and group pcscd? The CCID driver already provides a udev
rule file to set access rights for group pcscd. See also
http://ludovicrousseau.blogspot.com/2010/09/pcscd-auto-start.html

- is it possible to use the --auto-exit feature of pcscd with systemd?
The idea is that the daemon exits itself when no client is using it.
pcscd remove the socket on exit. Maybe it is a problem for systemd,
see first question.

Thanks

-- 
 Dr. Ludovic Rousseau

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

Reply via email to