Files
managed-portal/managed/store_dwell_alert/deploy/store-dwell-alert.service.tpl
2026-04-27 10:04:36 +08:00

20 lines
473 B
Smarty

[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