"Steve Wolfe" <[EMAIL PROTECTED]> wrote:

>> my problem is very basic, but i do not find a solution:
>>
>> I am using the init script from http://web.infoave.net/~dsill/lwq.html
>>
>> I created a link in rc3.d. But when starting the system the error : Could
>> not found such file or directory occurs. It's when the system tries to
>load
>> S80qmail. But the file is correctly linked. And i do not see any errors
>in
>> the file. Where is my mistake???
>
>  Well, try:
>
>cat /etc/rc.d/rc[runlevel]/S80qmail
>
> from the command line, chances are that it will display the file just
>fine, telling you that it is in fact linked correctly.  Then, let's look at
>the pertinant lines from the script:

First, check the "magic number" (the first line of the script):

head -1 /etc/rc.d/rc[runlevel]/S80qmail | od -c

You should see:

0000000   #   !   /   b   i   n   /   s   h  \n
0000012

If you see something that ends with "\r  \n", then the file is in DOS
format, and you can fix it by doing:

tr -d '\012' </usr/local/sbin/qmail >/tmp/foo
cp /tmp/foo /usr/local/sbin/qmail

-Dave

Reply via email to