diff --git a/Service.md b/Service.md new file mode 100644 index 0000000..4a2ea6e --- /dev/null +++ b/Service.md @@ -0,0 +1,15 @@ +```bash +# /etc/systemd/system/ + +[Unit] +Description=..write something about project + +[Service] +Type=simple +WorkingDirectory=/home/gitlab-runner/deploy/{project_name} +ExecStart=/usr/bin/dotnet /home/gitlab-runner/deploy/{project_name}/{project_name}.dll --environment {environment_name} --urls={url} +Restart=always + +[Install] +WantedBy=multi-user.target +``` \ No newline at end of file