The pkcsslotd initscript is not LSB compliant. [ -f $SLOTDBIN ] || exit 5 [ -f $CONFSTART ] || exit 5 in main run of the script brokes status command (always exits with 5 when there is problem with one of those. Also, -x is more appropriate in case of the binary. Put these into the start function. More, if there is typo in command, like service pkcsslotd satrt it shall end with error code 3, not 1. For more details about LSD compliance, please consult https://fedoraproject.org/wiki/FCNewInit/Initscripts I'll send patch next week, just need to put this bug in the tracker due to our LSB compliance checking.
Michal, I'm looking forward to your patch. Since the initscript is taken directly from upstream (misc/pkcsslotd.in), you might want to send the patch to the mailing list opencryptoki-tech at lists.sourceforge.net.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Created attachment 373962 [details] New initscript
Also there is another issue with the script: The pkcsslotd script doesn't implement the force-reload option
Another issue found, after issuing another start on already started pkcsslotd service, the return code is 0: # service pkcsslotd stop Shutting down pkcsslotd: [ OK ] # service pkcsslotd start Starting pkcsslotd: [ OK ] # service pkcsslotd start Starting pkcsslotd: ERROR pkcsslotd-log.o[14859.-1010845952]: Shared memory creation failed (0x11) ERROR pkcsslotd-log.o[14859.-1010845952]: perform ipcrm -M 0x620289B6 [FAILED] # echo $? 0
I added 'force-reload' to the initscript as a synonym for 'restart' in opencryptoki-2.3.1-2.fc13.
opencryptoki-2.3.1-4.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/opencryptoki-2.3.1-4.fc13
opencryptoki-2.3.1-4.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.