summarylogtreecommitdiffstats
path: root/teslamate.service
blob: 6d0dd828a003cff111b70b255ee670d6db9a30ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=TeslaMate
After=network.target
After=postgresql.service

[Service]
Type=simple
User=teslamate
Group=teslamate
Restart=on-failure
RestartSec=5
EnvironmentFile=/etc/teslamate.conf
WorkingDirectory=/usr/share/webapps/teslamate
ExecStartPre=/usr/share/webapps/teslamate/bin/teslamate eval "TeslaMate.Release.migrate"
ExecStart=/usr/share/webapps/teslamate/bin/teslamate start
ExecStop=/usr/share/webapps/teslamate/bin/teslamate stop

[Install]
WantedBy=multi-user.target