From ab645ad14c64e46b3846e9ee54cde0012ad140da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=AE=A1=E7=90=86=E5=93=A1?= Date: Fri, 6 Mar 2026 06:15:24 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20Service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Service.md 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