I've put a bash script at /etc/init.d, changed in to executable but Proxmox doesn't execute it when it boots.
How can I add a command script to execute when Proxmox boots?
nano /etc/crontab
Then add a line like this if you want root to run a bash script after boot: @reboot root /bin/bash /path/to/your/script.sh > /dev/null 2>&1
It will pipe the output of that script into the void, so crontab won't send you emails each time your script echos/prints something or complains because of a warning/error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.