init commit
This commit is contained in:
5
templates/project_template.j2
Normal file
5
templates/project_template.j2
Normal file
@ -0,0 +1,5 @@
|
||||
[project]
|
||||
title={{ project_title }}
|
||||
start=python3 -B app.py
|
||||
exit_condition=HOLD_CANCEL
|
||||
|
||||
15
templates/service_template.j2
Normal file
15
templates/service_template.j2
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
[Unit]
|
||||
Description={{ svc_desc }}
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory={{ working_dir }}
|
||||
ExecStartPre=/bin/sleep 5
|
||||
ExecStart={{ exec_start }}
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user