init script needs to be fixed

Bug #60206 reported by Andreas Jellinghaus
8
Affects Status Importance Assigned to Milestone
openct (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: openct

ubuntu has /var/run on tmpfs and as a result all directories and files in there need to be re-created
after reboot and all permissions need to be set. the openct init script is prepared for that, you only
need to comment out those two lines:
        #chown root:scard /var/run/openct
        #chmod 0750 /var/run/openct
and permissions will be ok again. without this fix the package completely stops working after the
first reboot.

Revision history for this message
Michael Bienia (geser) wrote :

openct (0.6.8-1ubuntu1) edgy; urgency=low

  * etc/init-script.in: enable setting owner and permissions on
    /var/run/openct

Revision history for this message
Michael Bienia (geser) wrote :

Fixed in openct 0.6.8-1ubuntu1

Changed in openct:
status: Unconfirmed → Fix Released
Revision history for this message
Laurent Bigonville (bigon) wrote :

I permit myself to reopen this bug because I still get the same problem. I only install libopenct1 (I don't need the openct package) and get an error about the missing /var/run/openct directory too. I get this error with everything linked againts libopenct, the init script should be in the libopenct1 package not the openct one.

Changed in openct:
status: Fix Released → Unconfirmed
Revision history for this message
Andreas Jellinghaus (tolonuga) wrote : Re: [Bug 60206] Re: init script needs to be fixed

Laurent Bigonville wrote:
> I permit myself to reopen this bug because I still get the same problem.
> I only install libopenct1 (I don't need the openct package) and get an
> error about the missing /var/run/openct directory too. I get this error
> with everything linked againts libopenct, the init script should be in
> the libopenct1 package not the openct one.
>
> ** Changed in: openct (Ubuntu)
> Status: Fix Released => Unconfirmed
>

you didn't mention which application you are using, so I guess it is
opensc. to quote the FAQ from http://www.opensc-project.org/faq.html

--cut--
/var/run/openct/status: No such file or directory
  OpenSC has support for three driver types below it: PCSC, OpenCT and
CT-API. If you want to use OpenSC with PC/SC-Lite only, please edit
opensc.conf, look for reader_drivers like and remove the openct driver.

  If you get this message, but want to use OpenSC with OpenCT, then you
have not properly installed OpenCT. Please have a look at the QuickStart
docucument in OpenCT, most likely you didn't start the init script or it
was not properly installed or something like that.
--cut--

if you want to use opensc with pcsc only, edit the reader_drivers
setting in opensc.conf. if you want to use opensc with openct, you need
to install the openct package too. so I think the error message you get
is correct, and you need to take either action.

btw: the same is true for opensc and pcsc, you get a similar error
message if you install opensc and libpcsclite only, and then you need to
either remove pcsc from the reader_drivers setting or install pcscd.

Regards, Andreas

Revision history for this message
Dan O'Huiginn (daniel-ohuiginn) wrote :

moving this back to 'fix released'; the re-opening was probably due to misconfiguration, and there hasn't been any action on it in several months.

Changed in openct:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.