I want to have an auto start script for my project. I use docker and want to try a script that starts if the container start.
I tried to run update-rc and i dont have any problems but the symbolic links dont get generated. I checked it in the file explorer and with my script:
mkdir /var/www/$(date +%Y%m%d_%H%M%S)
But nothing happend.
This is in my dockerfile:
COPY starter.sh /etc/init.d/starter.sh RUN chmod +x /etc/init.d/starter.sh RUN chmod 755 /etc/init.d/starter.sh RUN update-rc.d starter.sh defaults 10
I dont get any error messages. Thats my problem 🙂