From 0adee75a39719a7f4b53c4e0164d8df00f403d08 Mon Sep 17 00:00:00 2001 From: "yuriko.pozhilov" Date: Sun, 22 Mar 2026 13:43:00 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- systemd.ini | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd.ini diff --git a/systemd.ini b/systemd.ini new file mode 100644 index 0000000..0b4ea42 --- /dev/null +++ b/systemd.ini @@ -0,0 +1,17 @@ +[Unit] +Description=YT Player +After=network.target + +[Service] +User=ubuntu +WorkingDirectory=/home/ubuntu/ytplayer +EnvironmentFile=/home/ubuntu/ytplayer/.env +ExecStart=/home/ubuntu/ytplayer/venv/bin/uvicorn app:app \ + --host 0.0.0.0 \ + --port 5000 \ + --workers 4 \ + --loop asyncio +Restart=always +RestartSec=5 +[Install] +WantedBy=multi-user.target \ No newline at end of file