Server Daemons
The Greeks considered daemons to be spirits that work in the background, so that’s why daemons are called daemons.
systemd
/etc/rc.local
is deprecated according to ChatGPT.
Graphical Applications
Using a desktop file in the autostart folder.
lxde?
If running a version with desktop GUI, put the desktop file for the program you want to auto-start in:
~/.config/autostart
Short-Run Programs that Run Regularly
Crontab (everything with crontab can be done with systemd, but easier with crontab.
To show the path and contents of a systemd unit file of a specific service:
systemctl cat awim-fastapi.service
To check the status of a service:
systemctl status awim-fastapi.service
To restart the service:
sudo systemctl restart awim-fastapi.service