The TERM signal is sent by default when the killproc function is called.
Also the pid file created by the pkcsslotd executable is removed by the
initscript (resp. by the killproc function) only when no signal is set.
Other solution how to remove the pid file is to remove it directly by the
executable.

Signed-off-by: Dan Horák <[email protected]>
---
 misc/pkcsslotd.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/pkcsslotd.in b/misc/pkcsslotd.in
index 2c5cd34..a0c4896 100644
--- a/misc/pkcsslotd.in
+++ b/misc/pkcsslotd.in
@@ -37,7 +37,7 @@ start() {
 
 stop() {
        echo -n $"Shutting down pkcsslotd:"
-       killproc pkcsslotd -TERM
+       killproc pkcsslotd
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
-- 
1.6.6.1


------------------------------------------------------------------------------
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to