Browse Source

[api] fix du fichier service pour qu'il requiert pyheatpump_supervise.timer d'être activé

Maxime Alves LIRMM@home 3 years ago
parent
commit
ed0acf3ffd
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      config/pyheatpump_api.service

+ 2
- 1
config/pyheatpump_api.service View File

1
 [Unit]
1
 [Unit]
2
 Description=API to fetch data from heatpump with HTTP
2
 Description=API to fetch data from heatpump with HTTP
3
 After=network.target
3
 After=network.target
4
+Requires=pyheatpump_supervise.timer
4
 
5
 
5
 [Service]
6
 [Service]
6
 Type=simple
7
 Type=simple
7
-WorkingDirectory=/var/run/pyheatpump/
8
+WorkingDirectory=/var/lib/pyheatpump/
8
 Environment="LOGLEVEL=INFO"
9
 Environment="LOGLEVEL=INFO"
9
 ExecStart=/usr/bin/env pyheatpump run
10
 ExecStart=/usr/bin/env pyheatpump run
10
 KillMode=mixed
11
 KillMode=mixed

Loading…
Cancel
Save