summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-26 23:49:24 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-26 23:49:24 +0100
commit4e86a2ee9f5578cbaae6cc7dd52616e3e3751764 (patch)
tree9aef587c109accee021553e9e95f26dab11e8920 /templates
parentfdc9132f0e8fc69d0f500ec07638ac595293083b (diff)
rearangef the file managment
Diffstat (limited to 'templates')
-rw-r--r--templates/api_server.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/api_server.service b/templates/api_server.service
new file mode 100644
index 0000000..b69c5e4
--- /dev/null
+++ b/templates/api_server.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=REST API Server for RPI
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/python3 /home/pi/I2C/bin/main.py
+WorkingDirectory=/home/pi/I2C
+User=nasr
+Group=pi
+Restart=always
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy=multi-user.target
+