create a systemd service
create a new service file in the folder /etc/systemd/system
the file should look like this:
[Unit]
Description=best description ever
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=user
ExecStart=command_to_start
[Install]
WantedBy=multi-user.target