[Unit] Description=dilbertRss After=syslog.target After=network.target [Service] Type=simple # set user and group User=dilbert Group=dilbert # configure location WorkingDirectory=/home/dilbert/dilbertRss/ ExecStart=uvicorn main:app --port 8866 Restart=always RestartSec=15 [Install] WantedBy=multi-user.target