opencryptoki postinst fails when pkcsslotd is already running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opencryptoki (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Version 2.3.1+dfsg-
opencryptoki postinst does
invoke-rc.d opencryptoki start || exit $?
In turn, /etc/init.
start-stop-daemon --start --quiet --pidfile "/var/lib/
But if pkcsslotd is already running, this fails.
# /etc/init.
Stopping PKCS#11 slot daemon: pkcsslotd.
# echo $?
0
# /etc/init.
Starting PKCS#11 slot daemon: # echo $?
1
Note as well that when it fails, it fails badly (no newline or error message).
Here is the error from pkcsslotd:
# ps augxw | grep pkcsslotd
root 6351 0.0 0.0 20164 896 pts/0 S+ 16:35 0:00 grep --color=auto pkcsslotd
# /usr/sbin/pkcsslotd
# echo $?
0
# /usr/sbin/pkcsslotd
ERROR pkcsslotd[
ERROR pkcsslotd[
# echo $?
1
It is possible that this is the root cause underlying https:/ /bugs.launchpad .net/ubuntu/ +source/ opencryptoki/ +bug/963533.