Add info on service configuration for marketdaatserver

This commit is contained in:
2025-04-06 18:49:00 -04:00
parent ac69b4a994
commit d154b27d44

View File

@@ -14,6 +14,33 @@ Microsoft.AspNet.WebApi.OwinSelfHost
3) IPMonitor
4) Models
MarketDataService
/etc/systemd/system
sudo nano mks.service
Place the following into the file
[Unit]
Description=Market Data Server Service
After=network-online.target
Wants=network-online.target
[Service]
User=pi # Or the user your executable runs as
WorkingDirectory=/opt/MarketData/MarketDataServer
ExecStart=/opt/MarketData/MarketDataServer/mks
Restart=always
RestartSec=5 # Seconds to wait before restarting (optional)
KillMode=process # Ensures the service is killed gracefully
[Install]
WantedBy=multi-user.target
Enable the service: sudo systemctl enable mks.service.
Start the service: sudo systemctl start mks.service.
Check the status: sudo systemctl status mks.service
******************************************************************************************************
Adding notes on MariaDb as I plan to migrate the MySql over to one of the Raspberry PI 4 B's
https://hevodata.com/learn/mysql-to-mariadb/
@@ -39,6 +66,8 @@ ping a.b.c > /dev/null 2>&1
CRON SCHEDULE
sudo crontab -e
** THE LATEST AND GREATEST IS ALWAYS AT THE BOTTOM
Also note that 1>/dev/null is synonymous to, but more explicit than >/dev/null