armooo/cloudprint — Issue #19: Starting from startup on Centos 6
Author: msurg
Created: 2011-11-20 19:51:33+00:00
State: open

Hi,

I installed cloudprint and it works fine as daemon when I type "cloudprint -d" on console and I can print from my Android device.

I tried to start it from a startup script. Tried to adopt an init script from ubuntu script and tried as a command line in "rc.local" with no luck.

I am getting the below error.

-------------
Updated Printer PDFPrinter
Updated Printer ML-1710
Updated Printer Samsung_ML-1710
Traceback (most recent call last):
File "/usr/bin/cloudprint", line 9, in
load_entry_point('cloudprint==0.5', 'console_scripts', 'cloudprint')()
File "/usr/lib/python2.6/site-packages/cloudprint-0.5-py2.6.egg/cloudprint/cloudprint.py", line 394, in main
daemon_runner = runner.DaemonRunner(app)
File "/usr/lib/python2.6/site-packages/daemon/runner.py", line 80, in __init__
self.daemon_context.stdout = open(app.stdout_path, 'w+')
IOError: [Errno 6] No such device or address: '/dev/tty'
-------------

I think it is someway related to python daemon but it is beyond my knowledge.
Any clues?
Regards...

Centos 6
python-2.6.5-3.el6_0.2.i686
python-daemon-1.5.2-1.el6.noarch