[Unit] Description=Flask App Service After=network.target [Service] ExecStart=/usr/bin/python /var/www/html/app.py WorkingDirectory=/var/www/html StandardOutput=syslog StandardError=syslog Restart=always User=adminadmin [Install] WantedBy=multi-user.target