Skip to content
Branch: master
Find file History
Latest commit db437e8 Sep 19, 2017
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.vscode Added first project Sep 19, 2017
src Added first project Sep 19, 2017
README.md Added first project Sep 19, 2017
project1.service Added first project Sep 19, 2017
service.csproj Added first project Sep 19, 2017

README.md

Project 1

Getting started building a systemd service.

Building

Execute dotnet build on the command line.

Running

Execute dotnet run on the command line to run as a console application.

To run as a service, copy the project1.service file to ~/.config/systemd/user/. Run systemctl start --user project1.service to start.

Publishing

To publish, run sudo dotnet publish -o /opt/Project1

Output

This service writes "Hello World!" every 2 seconds. You can see this by running systemctl status --user project1.service

You can’t perform that action at this time.