Wednesday, November 13, 2013

Re: Missing LSB Information (Start Script Install)

Hello.


I had the same problem: I had written a script e.g. mystartupscript and then I have done the following:


Code:
user@computer:/etc/init.d$ sudo update-rc.d mystartupscript defaults
Then after some time I modified my script and thought to have to do this again. So I again wrote ...

Code:
user@computer:/etc/init.d$ sudo update-rc.d mystartupscript defaults
... and so I got the mysterious failure:

Code:
update-rc.d: warning: /etc/init.d/mystartupscript missing LSB information
I have solved the problem as follows:

Code:
user@computer:/etc/init.d$ sudo update-rc.d -f mystartupscript remove
user@computer:/etc/init.d$ sudo update-rc.d mystartupscript defaults
And don't forget to make the script executable:
Code:
user@computer:/etc/init.d$ sudo chmod +x ./mystartupscript

I hope it can help you.

No comments:

Post a Comment