diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-18 21:27:24 -0400 |
---|---|---|
committer | zberwaldt <17715430+zberwaldt@users.noreply.github.com> | 2024-03-18 21:30:13 -0400 |
commit | 53b74ec6122c94853f9d43ab2ac1f69efab0886d (patch) | |
tree | 02b6d887d5d0ba5d887ef0334f9dba07d3814292 /api/water.service | |
parent | e5fbe360d355557b978973f62eed06e01e85bb71 (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 | ||