debian/pcscd.init: do not start pcscd if systemd is used

This commit is contained in:
Ludovic Rousseau 2011-11-25 14:41:16 +00:00
parent 891451029b
commit c390675a6e
2 changed files with 5 additions and 5 deletions

3
debian/changelog vendored
View File

@ -3,8 +3,9 @@ pcsc-lite (1.8.1-1) unstable; urgency=low
* New upstream release
* debian/copyright: use Machine-readable DEP-5 format
* debian/pcscd.init: Fix "init.d status support" (Closes: #644127)
* debian/pcscd.init: do not start pcscd if systemd is used
-- Ludovic Rousseau <rousseau@debian.org> Fri, 25 Nov 2011 15:33:16 +0100
-- Ludovic Rousseau <rousseau@debian.org> Fri, 25 Nov 2011 15:40:48 +0100
pcsc-lite (1.7.4-2) unstable; urgency=low

7
debian/pcscd.init vendored
View File

@ -32,10 +32,6 @@ SCRIPTNAME=/etc/init.d/$NAME
# /etc/default/pcscd and add a line
# DAEMON_ARGS="--your-option"
# DO NOT start the daemon on startup
# comment the line to have the same behavior as in version < 1.6.0
exit 0
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
@ -68,6 +64,9 @@ do_start()
chgrp pcscd $IPCDIR
chmod g+w $IPCDIR
# do not start here if systemd is used
test -d /sys/fs/cgroup/systemd && exit 0
# Return
# 0 if daemon has been started
# 1 if daemon was already running