Add systemd service file
This commit is contained in:
parent
f5e0ac8cac
commit
735ed3a9a2
1 changed files with 13 additions and 0 deletions
13
tracker_api.service
Normal file
13
tracker_api.service
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=API for my habit tracking system.
|
||||||
|
After=network.target
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
|
# need to setup custom user for api.
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
RestartSec=1
|
||||||
|
User=
|
||||||
|
ExecStart=/usr/bin/env python main.py
|
||||||
|
|
Loading…
Reference in a new issue