summaryrefslogtreecommitdiff
path: root/systemd/web_template.service.jinja2
blob: 86b3c3d7e309aca7f313cb91422d70aeb3b07409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

[Unit]
Description={{ project_description }}
After=network.target

[Service]
User={{ user }}
Group={{ group }}
WorkingDirectory=/opt/{{ project_name }}/
ExecStart=python3 /opt/{{ project_name }}/server.py

[Install]
WantedBy=multi-user.target