From df4e812dc7f73eb37a86ea5525b3f15f53346b79 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 8 Oct 2023 10:43:38 -0600 Subject: add service files --- autoaid.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 autoaid.service (limited to 'autoaid.service') diff --git a/autoaid.service b/autoaid.service new file mode 100644 index 0000000..0783144 --- /dev/null +++ b/autoaid.service @@ -0,0 +1,12 @@ +[Unit] +Description=AutoAid Python App +After=network.target + +[Service] +User=ec2-user +WorkingDirectory=/home/ec2-user/dep-dir +ExecStart=/usr/bin/python3 /home/ec2-user/dep-dir/app.py +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file -- cgit v1.2.3