Add systemd service file

This commit is contained in:
riley 2021-08-23 18:51:34 -04:00
parent f5e0ac8cac
commit 735ed3a9a2

13
tracker_api.service Normal file
View 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