On Fri, Feb 19, 2016 at 02:27:18PM +0000, Chris Green wrote:
I have worked out why the 'scan from computer' utilities don't work with my new OKI printer.
They expect a device /dev/okiscand which should be created when '/etc/init.d/okiscand start' runs.
If I run '/etc/init.d/okiscand start' manually as root then everything is fine, I can scan from the computer.
However I can't work out why it's not working correctly at startup. There's nothing in the logs at all and it always works fine when run manually.
I *suspect* now I look a bit harder that the oki installation is for an old V5 setup using the /etc/rcN.d directories. There is a link from (for example) /etc/rc5.d/S03okiscand to the script in init.d but there's nothing in /etc/init that refers to it.
What do I need to do to get upstart to start it? (Don't tell me I should use systemd, a step too far!)
It turns out to be much simpler than SysV->upstart or anything like that. You can't have a symbolic link in /etc/init.d. I've copied what /etc/init.d/okiscand pointed at to /etc/init.d/okiscand and now it all works from startup. :-)