35 lines
898 B
Plaintext
35 lines
898 B
Plaintext
dotnet publish -c Release -o ./bin/publish/ --runtime linux-x64 --self-contained true /p:PublishTrimmed=false /p:PublishReadyToRun=false
|
|
|
|
|
|
|
|
#!/bin/bash
|
|
|
|
/usr/sbin/ip link set can0 down
|
|
/usr/sbin/ip link set can1 down
|
|
/usr/sbin/ip link set can0 up type can bitrate 500000
|
|
/usr/sbin/ip link set can0 txqueuelen 1000
|
|
/usr/sbin/ip link set can1 up type can bitrate 1000000
|
|
/usr/sbin/ip link set can1 txqueuelen 10000
|
|
|
|
cd /home/robotics/anhnv/RobotNet10/srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/bin/publish
|
|
./RobotNet10.RobotApp --urls https://0.0.0.0:4430
|
|
|
|
|
|
|
|
|
|
|
|
[Unit]
|
|
Description=RobotNet10.RobotApp Service
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/home/robotics/anhnv/RobotNet10/srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/bin/publish/startup.sh
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|