Alright, let's make that happen with systemd on Ubuntu 22.04. Follow these steps:
-
Create a systemd service file: Open a terminal and create a new service file for your command.
sudo nano /etc/systemd/system/warp-plus.service
-
Add the service configuration: Paste the following configuration into the file. Adjust the paths and command options as necessary.
[Unit] Description=Warp Plus Service After=network.target [Service] ExecStart=/home/erfanium/Documents/warp-plus/warp-plus -b 127.0.0.1:1234 --gool WorkingDirectory=/home/erfanium/Documents/warp-plus Restart=always User=erfanium [Install] WantedBy=multi-user.target
-
Reload systemd to recognize the new service:
sudo systemctl daemon-reload
-
Enable the service to run at startup:
sudo systemctl enable warp-plus.service
-
Start the service now:
sudo systemctl start warp-plus.service
-
Check the status to ensure it's running:
sudo systemctl status warp-plus.service
And that's it! Your warp-plus
command will now run on startup. If you hit any bumps, let me know.