diff options
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 | ||