From 9b2ff546f065b46670f8d48559fd57dd667a4f0c Mon Sep 17 00:00:00 2001 From: hak8or Date: Sun, 12 Aug 2018 18:52:35 -0400 Subject: [PATCH] Added systemd file --- dumbyt_dotnet.service | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dumbyt_dotnet.service diff --git a/dumbyt_dotnet.service b/dumbyt_dotnet.service new file mode 100644 index 0000000..c211065 --- /dev/null +++ b/dumbyt_dotnet.service @@ -0,0 +1,26 @@ +[Unit] +Description=Dotnet interface for DumbYT +After=network-online.target +Wants=network-online.target systemd-networkd-wait-online.service + +[Service] +WorkingDirectory=/root/BackEnd/bin/Debug/netcoreapp2.0/ +ExecStart=/usr/bin/dotnet /root/BackEnd/bin/Debug/netcoreapp2.0/YTManager.dll + +; Restart configuration +Restart=always + +; How this shows up in logs +SyslogIdentifier=dumbyt_dotnet + +; User and Cgroup the process will run as. +User=root +Group=root + +Environment=ASPNETCORE_ENVIRONMENT=Production +Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false +Environment=ASPNETCORE_URLS="http://*:62214" +Environment=POSTGRESQL_DBSTR="Server=192.168.1.2;Port=32768;Database=postgres;User Id=postgres;" + +[Install] +WantedBy=multi-user.target