From e0af461603261e2dd5968c806c120df166612a78 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sat, 3 Dec 2011 13:49:05 +0000 Subject: [PATCH] If systemd is used then do not start pcscd at boot but on demand http://ludovicrousseau.blogspot.com/2011/11/pcscd-auto-start-using-systemd.html --- debian/changelog | 7 +++++++ debian/pcscd.init | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/debian/changelog b/debian/changelog index a316404..5d7f7f6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pcsc-lite (1.8.1-4) unstable; urgency=low + + * If systemd is used then do not start pcscd at boot but on demand + http://ludovicrousseau.blogspot.com/2011/11/pcscd-auto-start-using-systemd.html + + -- Ludovic Rousseau Sat, 03 Dec 2011 14:45:35 +0100 + pcsc-lite (1.8.1-3) unstable; urgency=low * debian/{control,rules}: do not Build-Depends: on systemd but use diff --git a/debian/pcscd.init b/debian/pcscd.init index 6c81239..e8f91e0 100644 --- a/debian/pcscd.init +++ b/debian/pcscd.init @@ -41,6 +41,14 @@ SCRIPTNAME=/etc/init.d/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh +# Do not start at boot using systemd but start using on-demand +# http://ludovicrousseau.blogspot.com/2011/11/pcscd-auto-start-using-systemd.html +if [ $1 = "start" -a -d /sys/fs/cgroup/systemd ] +then + # Do not start from this script + exit 0 +fi + # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions