diff options
| author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-18 21:27:24 -0400 |
|---|---|---|
| committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-18 21:27:24 -0400 |
| commit | eb51bdbfef8c2aacf0fdfde279a40de7f74c8d86 (patch) | |
| tree | f8fdfb4e28fa271eda3027d84843e4b476831cdd /api/water.service | |
| parent | 5ddcd1cf663cc732819cfcb66f2ff6b1bbeb0d47 (diff) | |
clean up, add better error handling
Diffstat (limited to 'api/water.service')
| -rw-r--r-- | api/water.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/api/water.service b/api/water.service new file mode 100644 index 0000000..eb8a779 --- /dev/null +++ b/api/water.service | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Water is a backend for tracking water consumption | ||
| 3 | StartLimitIntervalSec=600 | ||
| 4 | StartLimitBurst=2 | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | WorkingDirectory=/path/to/water/binary | ||
| 8 | User=water | ||
| 9 | Restart=on-failure | ||
| 10 | RestartSec=30 | ||
| 11 | PermissionsStartOnly=true | ||
| 12 | |||
| 13 | [Install] | ||
| 14 | WantedBy=multi-user.target | ||
