Browse Source

fixed linux

main
jkpete 4 weeks ago
parent
commit
a0d588339b
  1. 2
      Script/Model/ModelSerialTest.cs
  2. 6
      SystemCtl/TrackTarget.service
  3. 2
      SystemCtl/install.sh

2
Script/Model/ModelSerialTest.cs

@ -12,7 +12,7 @@ public class ModelSerialTest : EGModule,IEGFramework @@ -12,7 +12,7 @@ public class ModelSerialTest : EGModule,IEGFramework
public const string PORT_WIN = "COM2";
public bool IsLinux = false;
public bool IsLinux = true;
public string TestPort { set; get; } = PORT_LINUX;
public string ColorSerialPort { set; get; } = "";

6
SystemCtl/TrackTarget.service

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
[Unit]
Description=TrackTargetService
Description=TargetService
After=network.target
[Service]
ExecStart=/home/u/TrackTargetService/bin/Release/net8.0/TrackTargetService
WorkingDirectory=/home/u/TrackTargetService
ExecStart=/home/u/TargetService/bin/Release/net8.0/TargetService
WorkingDirectory=/home/u/TargetService
User=u
Group=dialout
Restart=always

2
SystemCtl/install.sh

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/bin/bash
# 服务文件名
SERVICE_FILE="TrackTarget.service"
SERVICE_FILE="Target.service"
# 检查当前目录下是否存在服务文件
if [ ! -f "$SERVICE_FILE" ]; then

Loading…
Cancel
Save