I have simple /etc/init.d/myscript
startup script in my Debian squeeze
that just logs to file:
echo "starting init.d script" >> /opt/aaa/starting.log
I did all actions to register script:
sudo chmod +x myscript
sudo chown root:root myscript
sudo update-rc.d myscript defaults
sudo update-rc.d myscript enable
But can't get record in /opt/aaa/starting.log
file.
How to fix that problem?
Best Answer
You are missing mandatory headers, that's why update-rc.d can not setup your script to be started at system boot.
From /etc/init.d/README
First try to understand a working init script (like ssh), and then try to adapt to your usage.