添加 market-monitor systemd service 文件
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=PolyWeather Market Monitor Web
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/root/PolyWeather/monitoring-web
|
||||
Environment=POLYWEATHER_DB_PATH=/var/lib/polyweather/polyweather.db
|
||||
Environment=MONITOR_LISTEN_ADDR=0.0.0.0:3001
|
||||
ExecStart=/root/PolyWeather/monitoring-web/target/release/market-monitor
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user