新增 Service
15
Service.md
Normal file
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
|
||||
```
|
||||
Reference in New Issue
Block a user