Initial commit
This commit is contained in:
34
srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/README
Normal file
34
srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/README
Normal file
@@ -0,0 +1,34 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user