~ubuntu-branches/ubuntu/wily/pcsc-lite/wily-proposed

« back to all changes in this revision

Viewing changes to debian/pcscd.init

  • Committer: Package Import Robot
  • Author(s): Ludovic Rousseau
  • Date: 2012-10-24 13:47:03 UTC
  • Revision ID: package-import@ubuntu.com-20121024134703-mkpywm6zl5n97ves
Tags: 1.8.6-2
Fix "Wrong way of inhibiting start when using systemd" by removing the
useless (and wrong) code (Closes: #691086)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
# Load the VERBOSE setting and other rcS variables
42
42
. /lib/init/vars.sh
43
43
 
44
 
# Do not start at boot using systemd but start using on-demand
45
 
# http://ludovicrousseau.blogspot.com/2011/11/pcscd-auto-start-using-systemd.html
46
 
if [ $1 = "start" -a -d /sys/fs/cgroup/systemd ]
47
 
then
48
 
        # Do not start from this script
49
 
        exit 0
50
 
fi
51
 
 
52
44
# Define LSB log_* functions.
53
45
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
54
46
. /lib/lsb/init-functions
104
96
        [ "$RETVAL" = 2 ] && return 2
105
97
}
106
98
 
107
 
#
108
 
# Function that sends a SIGHUP to the daemon/service
109
 
#
110
 
do_reload() {
111
 
        #
112
 
        # If the daemon can reload its configuration without
113
 
        # restarting (for example, when it is sent a SIGHUP),
114
 
        # then implement that here.
115
 
        #
116
 
        start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
117
 
        return 0
118
 
}
119
 
 
120
99
case "$1" in
121
100
  start)
122
101
        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"