Skip to content

This repository contains the configuration file for a systemd unit used to host a .NET application on a Linux distribution. Systemd is an init system that provides a standard process for controlling what programs run when a Linux system boots up, making it ideal for managing and maintaining long-running applications, like those built in .NET.

Notifications You must be signed in to change notification settings

Nikoo-Asadnejad/sample-dotnet-systemdservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

.Net Systemd Unit

This repository contains the configuration file for a systemd unit used to host a .NET application on a Linux distribution. Systemd is an init system that provides a standard process for controlling what programs run when a Linux system boots up, making it ideal for managing and maintaining long-running applications, like those built in .NET.

Overview:

This configuration file simplifies the process of deploying and managing .NET applications on Linux servers. It ensures that your .NET application is started as a service, restarted automatically if it crashes, and controlled via standard systemd commands (e.g., start, stop, restart, enable, and disable).

Usage :

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

Restart the service:

sudo systemctl restart myapp.service

About

This repository contains the configuration file for a systemd unit used to host a .NET application on a Linux distribution. Systemd is an init system that provides a standard process for controlling what programs run when a Linux system boots up, making it ideal for managing and maintaining long-running applications, like those built in .NET.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages