debian/pcscd.init: Fix "init.d status support" (Closes: #644127)
This commit is contained in:
parent
ec027643cb
commit
891451029b
|
@ -2,8 +2,9 @@ pcsc-lite (1.8.1-1) unstable; urgency=low
|
||||||
|
|
||||||
* New upstream release
|
* New upstream release
|
||||||
* debian/copyright: use Machine-readable DEP-5 format
|
* debian/copyright: use Machine-readable DEP-5 format
|
||||||
|
* debian/pcscd.init: Fix "init.d status support" (Closes: #644127)
|
||||||
|
|
||||||
-- Ludovic Rousseau <rousseau@debian.org> Fri, 25 Nov 2011 15:26:11 +0100
|
-- Ludovic Rousseau <rousseau@debian.org> Fri, 25 Nov 2011 15:33:16 +0100
|
||||||
|
|
||||||
pcsc-lite (1.7.4-2) unstable; urgency=low
|
pcsc-lite (1.7.4-2) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -32,12 +32,6 @@ SCRIPTNAME=/etc/init.d/$NAME
|
||||||
# /etc/default/pcscd and add a line
|
# /etc/default/pcscd and add a line
|
||||||
# DAEMON_ARGS="--your-option"
|
# DAEMON_ARGS="--your-option"
|
||||||
|
|
||||||
# create $IPCDIR with correct access rights
|
|
||||||
rm -rf $IPCDIR
|
|
||||||
mkdir $IPCDIR
|
|
||||||
chgrp pcscd $IPCDIR
|
|
||||||
chmod g+w $IPCDIR
|
|
||||||
|
|
||||||
# DO NOT start the daemon on startup
|
# DO NOT start the daemon on startup
|
||||||
# comment the line to have the same behavior as in version < 1.6.0
|
# comment the line to have the same behavior as in version < 1.6.0
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -68,6 +62,12 @@ eval LANG=$value
|
||||||
#
|
#
|
||||||
do_start()
|
do_start()
|
||||||
{
|
{
|
||||||
|
# create $IPCDIR with correct access rights
|
||||||
|
rm -rf $IPCDIR
|
||||||
|
mkdir $IPCDIR
|
||||||
|
chgrp pcscd $IPCDIR
|
||||||
|
chmod g+w $IPCDIR
|
||||||
|
|
||||||
# Return
|
# Return
|
||||||
# 0 if daemon has been started
|
# 0 if daemon has been started
|
||||||
# 1 if daemon was already running
|
# 1 if daemon was already running
|
||||||
|
@ -127,15 +127,9 @@ case "$1" in
|
||||||
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
#reload|force-reload)
|
status)
|
||||||
#
|
status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||||
# If do_reload() is not implemented then leave this commented out
|
;;
|
||||||
# and leave 'force-reload' as an alias for 'restart'.
|
|
||||||
#
|
|
||||||
#log_daemon_msg "Reloading $DESC" "$NAME"
|
|
||||||
#do_reload
|
|
||||||
#log_end_msg $?
|
|
||||||
#;;
|
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
#
|
#
|
||||||
# If the "reload" option is implemented then remove the
|
# If the "reload" option is implemented then remove the
|
||||||
|
@ -159,8 +153,7 @@ case "$1" in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
|
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||||
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
|
|
||||||
exit 3
|
exit 3
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue