Linux Autostart (init.d)

I have successfully installed and setup domino 6.5 on redhat linux 9.

I’ve been following the redbook istructions for adding domino as a “service” to linux.

I’ve copied the install script into a file called “domino”. I’ve placed the file into /etc/init.d, and I’ve runn chkconfig -add domino.

This all went according to the instructions, however when I run:

service domino start

I get:

env: /etc/init.d/domino: No such File or Directory

I can’t work out why this is happening. Any ideas?

Subject: Linux Autostart (init.d)

Hi Dan,

I’ve got a similar error because the script file was in DOS format. Check if there is a [DOS] warning after the filename at the bottom of the screen when you edit it with vi. If so, type :set ff=unix (to convert to unix file format) and :w (to save the file).

Hope this help you

Regards,

Rogerio

Subject: RE: Linux Autostart (init.d)

I faced the same problem and after set ff=unix to convert to unix file format the problem was solved !

tk´s Rogerio

Subject: Linux Autostart (init.d)

Is the file owned by root, and is it executable by root ?

cd /etc/init.d

ls -al domino

should give something like

-rwxr–r-- 1 root root 1322 Feb 2 10:48 domino

If it doesn’t, you must change the owner, and make it so :

chown root.root domino

chmod u+x+w+r domino

cheers,

Tom