[CentOS] Assistance with startup script

Thu Jun 1 19:41:47 UTC 2006
Sam Drinkard <sam at wa4phy.net>

Dave K wrote:

> On 6/1/06, Sam Drinkard <sam at wa4phy.net> wrote:
>
>> When using the gui Service Configuration, I see the ldm service in
>> there, but when highlighted, I get a status message of "env:
>> /etc/init.d/ldm: No such file or directory.  Wondering now if maybe this
>> was not a dos type script to start with, and it's not being recognized.
>> "file ldm" says it's a bourne shell script however...
>>
>> Ideas or suggestions?
>
>
> Either the permissions (or ACLs, if you have them enabled) are wrong
> on the script, or there is an error in the shebang line (including
> stray \r characters).
>
>
It turns out the file had been created in dos.  A dos2unix fixed the 
problem. 

thanks all for the advice.



-- 
Sam W.Drinkard -- sam at wa4phy.net
WEB http://wa4phy.net
Augusta Mesonet
cell 706.825.8513 Home 706.868.7253
MAIL 4438 Branchwood Drive,
Martinez Georgia, 30907-1304