"/etc/init.d/pcscd"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight ))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
12번째 줄: 12번째 줄:
#
#
# chkconfig:  2345 25 88
# chkconfig:  2345 25 88
# description: The PC/SC smart card daemon is a resource manager for the \
# description: The PC/SC smart card daemon is a resyntaxhighlight manager for the \
#              PC/SC lite and Musclecard frameworks.  It coordinates \
#              PC/SC lite and Musclecard frameworks.  It coordinates \
#              communications with smart card readers, smart cards, and \
#              communications with smart card readers, smart cards, and \
27번째 줄: 27번째 줄:
# Default-Stop: 0 1 6
# Default-Stop: 0 1 6
# Short-Description: PC/SC smart card daemon
# Short-Description: PC/SC smart card daemon
# Description: The PC/SC smart card daemon is a resource manager for the
# Description: The PC/SC smart card daemon is a resyntaxhighlight manager for the
#              PC/SC lite and Musclecard frameworks.  It coordinates
#              PC/SC lite and Musclecard frameworks.  It coordinates
#              communications with smart card readers, smart cards, and
#              communications with smart card readers, smart cards, and
89번째 줄: 89번째 줄:
         exit 2
         exit 2
esac
esac
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 00:55 기준 최신판

1 개요[ | ]

/etc/init.d/pcscd
pcscd
  • PC/SC 스마트 카드 데몬

2 내용[ | ]

#!/bin/sh
#
# pcscd        Starts the pcscd Daemon
#
# chkconfig:   2345 25 88
# description: The PC/SC smart card daemon is a resyntaxhighlight manager for the \
#              PC/SC lite and Musclecard frameworks.  It coordinates \
#              communications with smart card readers, smart cards, and \
#              cryptographic tokens that are connected to the system.
#
# processname: pcscd
# config:      /etc/reader.conf
#
### BEGIN INIT INFO
# Provides: pcscd
# Should-Start: $syslog openct
# Should-Stop: $syslog openct
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PC/SC smart card daemon
# Description: The PC/SC smart card daemon is a resyntaxhighlight manager for the
#              PC/SC lite and Musclecard frameworks.  It coordinates
#              communications with smart card readers, smart cards, and
#              cryptographic tokens that are connected to the system.
### END INIT INFO
#
# Note!  pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.

. /etc/init.d/functions

umask 077

exec=/usr/sbin/pcscd
prog=$(basename $exec)
lockfile=/var/lock/subsys/$prog
PCSCD_OPTIONS=

# Source config
if [ -f /etc/sysconfig/pcscd ] ; then
    . /etc/sysconfig/pcscd
fi

start() {
    echo -n $"Starting PC/SC smart card daemon ($prog): "
    /usr/sbin/update-reader.conf && daemon $prog $PCSCD_OPTIONS
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}
stop() {
    echo -n $"Stopping PC/SC smart card daemon ($prog): "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}
restart() {
    stop
    start
}


case "$1" in
    start|stop|restart)
        $1
        ;;
    reload|force-reload)
        restart
        ;;
    status)
        status $prog
        ;;
    condrestart|try-restart)
        [ ! -f $lockfile ] || restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
        exit 2
esac

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}