I use this Python script on my Debian based Guru Plug to make it work as a print server for Google Cloudprint. With this I can print from my Android devices using apps like
Cloud Print. It works perfectly.
However, I have to start the script manually if I for some reason have to reboot the plug computer. If would like to have it start automatically on boot, but so far I haven't succeded.
/etc/rc.local I have this line:
/usr/bin/python /usr/local/bin/cloudprint -d
pgrep I can see that the script is running upon boot but it does not work. And redirecting output messages to a log file reveals that it ask for my Google username.
Normally it does not ask for authentification as this is stored in
/root/.cloudprintauth. But obviously, when running from rc.local it is not able to read or find the file.
So my question is:
How do I enable the script to be able to find/read the authentification file when run from rc.local?