Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/Desktop/myApp $ ./myApp
- [Unit]
- Description=myApp for controlling Tcp devices
- [Service]
- WorkingDirectory=/home/pi/Desktop/myApp
- # ----->>>>notice below line have to use the "myApp.dll" rather than "myApp", otherwise start deamon will give an error.
- ExecStart=/usr/local/bin/dotnet myApp.dll
- Restart=always
- # Restart service after 10 seconds if this service crashes:
- RestartSec=10
- SyslogIdentifier=myApp
- # User=pi
- [Install]
- WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment