remove j2 extension from templates
This commit is contained in:
15
templates/service_control.service
Normal file
15
templates/service_control.service
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
[Unit]
|
||||
Description={{ service_name }} Service Control API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory={{ service_control_folder }}
|
||||
ExecStartPre=/bin/sleep 5
|
||||
ExecStart={{ service_control_folder }}/venv/bin/python {{ service_control_folder }}/app.py
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user