diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-03-07 11:10:38 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-03-07 11:10:38 +0100 |
commit | 249d11ccee0bccbd4785794913c44c2eafc2c460 (patch) | |
tree | 40c81495e3773452732abece93db8979c3cd2a90 /systemd/web_template.service.jinja2 | |
parent | 47b30cea327420ed6f17ccc6fd521ad89f4b4e4f (diff) | |
download | web-template-249d11ccee0bccbd4785794913c44c2eafc2c460.tar web-template-249d11ccee0bccbd4785794913c44c2eafc2c460.tar.zst web-template-249d11ccee0bccbd4785794913c44c2eafc2c460.zip |
Implement Deployment
Diffstat (limited to 'systemd/web_template.service.jinja2')
-rw-r--r-- | systemd/web_template.service.jinja2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/systemd/web_template.service.jinja2 b/systemd/web_template.service.jinja2 new file mode 100644 index 0000000..86b3c3d --- /dev/null +++ b/systemd/web_template.service.jinja2 @@ -0,0 +1,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 + |