[Unit] Description={{ service_name }} Service Control API After=network.target [Service] User=root Group=root WorkingDirectory={{ service_control_folder }} ExecStartPre=/bin/sleep 5 ExecStart={{ service_control_folder }}/venv/bin/python {{ service_control_folder }}/app.py Restart=always [Install] WantedBy=multi-user.target