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