aboutsummaryrefslogtreecommitdiff
path: root/autoaid.service
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-08 10:43:38 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-08 10:43:38 -0600
commitdf4e812dc7f73eb37a86ea5525b3f15f53346b79 (patch)
treeeb6b9dd79e982bdc3df448b596f28213ee12659f /autoaid.service
parenta924ac2766e12d1b28c1bb69178b8b25039c4c0b (diff)
add service files
Diffstat (limited to 'autoaid.service')
-rw-r--r--autoaid.service12
1 files changed, 12 insertions, 0 deletions
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