Skip to content

Commit 95e5ca5

Browse files
(PTFE-2499) Add variable to deploy service systemd
1 parent d3feeae commit 95e5ca5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runner_manager/bin/startup.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,21 @@ function setup_service {
8585
# When running the runner as a just-in-time runner, the runsvc.sh script
8686
# is not created. Therefore we are manually creating it here.
8787

88-
echo "[Unit]
88+
echo '[Unit]
8989
Description=GitHub Actions Runner
9090
After=network.target
9191
9292
[Service]
93-
ExecStart=/bin/bash /home/actions/actions-runner/run.sh --jitconfig \"${JIT_CONFIG}\"
93+
Environment="JIT_BASE64=${JIT_CONFIG}"
94+
ExecStart=/bin/bash /home/actions/actions-runner/run.sh --jitconfig "${JIT_BASE64}"
9495
User=actions
9596
WorkingDirectory=/home/actions/actions-runner
9697
KillMode=process
9798
KillSignal=SIGTERM
9899
TimeoutStopSec=5min
99100
100101
[Install]
101-
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/actions.runner.service
102+
WantedBy=multi-user.target' | sudo tee /etc/systemd/system/actions.runner.service
102103

103104
sudo systemctl daemon-reload
104105
sudo chown -Rh actions:actions /home/actions/actions-runner

0 commit comments

Comments
 (0)