[Unit] Description=description of the service After=network.target [Service] User=specific user for this service Group=specific user for this service WorkingDirectory=/home/fastapi/fastapi-app ExecStart=command to run the service Restart=on-failure [Install] WantedBy=multi-user.target