新增 Service

2026-03-06 06:15:24 +00:00
parent 7e967dbca1
commit ab645ad14c

15
Service.md Normal file

@@ -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
```