-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdf9227
commit 567d3a4
Showing
5 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...github-runner/files/github-runner.service → ...-runner/files/github-runner-start.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[Unit] | ||
Description=github-runner-script | ||
Description=github-runner-start | ||
After=network.target | ||
|
||
[Service] | ||
Type=oneshot | ||
WorkingDirectory=/etc/github-runner | ||
ExecStart=/etc/github-runner/github-runner.sh --action=REGISTER | ||
ExecStop=/etc/github-runner/github-runner.sh --action=REMOVE | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
12 changes: 12 additions & 0 deletions
12
templates/azure/github-runner/files/github-runner-stop.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=github-runner-stop | ||
After=network.target | ||
|
||
[Service] | ||
Type=oneshot | ||
WorkingDirectory=/etc/github-runner | ||
RemainAfterExit=true | ||
ExecStop=/etc/github-runner/github-runner.sh --action=REMOVE | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters