I am struggling with this as well. Got the init.d script created and chmod to executable. This is the response I get when I attempt to get status:
[email protected] ~ $ /etc/init.d/ospi status
-bash: /etc/init.d/ospi: /bin/sh^M: bad interpreter: No such file or directory
There is a file /bin/sh but it is not text, cannot tell what it is. Any advice from the Linux gurus?