- Save the script as
/etc/init.d/raspi-printer
- Make it executable
chmod +x /etc/init.d/raspi-printer
- Start by doing
service raspi-printer start
To run automatically, you run the update-rc.d script:
sudo update-rc.d -f raspi-printer defaults
See: http://jimmyg.org/blog/2010/python-daemon-init-script.html