From 19a19c4132ef1d1881b863a13a0deff62e507fcd Mon Sep 17 00:00:00 2001 From: Abhijeet Dey Date: Mon, 9 Dec 2024 16:11:20 +0530 Subject: [PATCH] Created SystemMd file --- talawa-api-docs/talawa-api.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 talawa-api-docs/talawa-api.service diff --git a/talawa-api-docs/talawa-api.service b/talawa-api-docs/talawa-api.service new file mode 100644 index 0000000000..0acc9f1d16 --- /dev/null +++ b/talawa-api-docs/talawa-api.service @@ -0,0 +1,16 @@ +[Unit] +Description=Talawa API Service +After=network.target + +[Service] +User=talawa +Group=talawa +WorkingDirectory=/opt/talawa-api +ExecStart=/usr/bin/python3 /opt/talawa-api/main.py +Restart=always +RestartSec=5 +Environment="PATH=/usr/bin:/usr/local/bin" +Environment="APP_ENV=production" + + [Install] +WantedBy=multi-user.target