feat: initialize managed portal
This commit is contained in:
13
managed/store_dwell_alert/deploy/store-dwell-alert.service
Normal file
13
managed/store_dwell_alert/deploy/store-dwell-alert.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Store Dwell Alert
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/xiaozheng/store_dwell_alert
|
||||
ExecStart=/home/xiaozheng/store_dwell_alert/.venv/bin/python -m app.main
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Store Dwell Alert
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=__PROJECT_DIR__
|
||||
User=__RUN_USER__
|
||||
Group=__RUN_GROUP__
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=__PROJECT_DIR__/.venv/bin/python -m app.main --config __CONFIG_PATH__
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=append:__PROJECT_DIR__/logs/runtime.log
|
||||
StandardError=append:__PROJECT_DIR__/logs/runtime.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user