diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-24 12:41:38 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-24 12:41:38 +0100 |
| commit | 3a6928a0189bfe8d481c7eeac7a3d3df5dd9cdc0 (patch) | |
| tree | 86a00bcd10dae82ac566e68c2c525fa71a44607a /api_server.service | |
| parent | 567787eabe414592d005c727868091bcba2bf6fe (diff) | |
updates to the web gui
Diffstat (limited to 'api_server.service')
| -rw-r--r-- | api_server.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/api_server.service b/api_server.service new file mode 100644 index 0000000..b69c5e4 --- /dev/null +++ b/api_server.service | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=REST API Server for RPI | ||
| 3 | After=network.target | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | ExecStart=/usr/bin/python3 /home/pi/I2C/bin/main.py | ||
| 7 | WorkingDirectory=/home/pi/I2C | ||
| 8 | User=nasr | ||
| 9 | Group=pi | ||
| 10 | Restart=always | ||
| 11 | Environment="PYTHONUNBUFFERED=1" | ||
| 12 | |||
| 13 | [Install] | ||
| 14 | WantedBy=multi-user.target | ||
| 15 | |||
