Systemd
Add a New Service
/usr/local/bin/codeboot.sh
Add execute perms:
/etc/systemd/system/code-server.service
[Unit]
After=network.target
[Service]
User=<yourusername>
Group=<yourgroupname>
ExecStart=/usr/local/bin/codeboot.sh
Restart=on-failure
RestartSec=90s
[Install]
WantedBy=default.target