I have a start-stop script in /etc/init/
With this script I can start a bash-script with: service <script> start/stop
.
I want this script to start automatically when the container starts.
So there for I used the command update-rc.d <script> defaults
But when I restart the container the won't automatically starts.
If I log in the container and I start the script with: service <script> start
, the starts correctly.
Also I see that there are symbolic links in /etc/rc1.d (etc) to start the init script.
How can I solve that the init script start automatically after a restart of my container.