Files
vcr_capture/templates/service_control.service

16 lines
328 B
Desktop File

[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