Skip to content

Nikoo-Asadnejad/sample-dotnet-systemdservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

This is config file for systemd unit of a .net application used for hosting .net application on a linux distribution.

Rename ServiceName and Path in file.

Add The File To :
/etc/systemd/system/myapp.service

Reload Systemd:
sudo systemctl daemon-reload

Enable and Start The Service:
sudo systemctl enable myapp.service
sudo systemctl start myapp.service

Check the Status:
sudo systemctl status myapp.service

Logs and Troubleshooting:
journalctl -u myapp.service -e