Skip to content

Commit ee29bc5

Browse files
authored
run without service (#377)
1 parent cc5f77a commit ee29bc5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

runner_manager/bin/startup.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,4 @@ TimeoutStopSec=5min
143143
WantedBy=multi-user.target" >/home/actions/actions-runner/bin/actions.runner.service.template
144144

145145
sudo chown -Rh actions:actions /home/actions/actions-runner
146-
147-
if command -v systemctl; then
148-
sudo -H -u actions bash -c 'cd /home/actions/actions-runner &&
149-
sudo ./svc.sh install &&
150-
sudo ./svc.sh start'
151-
else
152-
nohup /home/actions/actions-runner/run.sh --jitconfig "${RUNNER_JIT_CONFIG}" 2>/home/actions/actions-runner/logs &
153-
fi
146+
sudo -H -u actions bash -c "nohup /home/actions/actions-runner/run.sh --jitconfig \"${RUNNER_JIT_CONFIG}\" 2>/home/actions/actions-runner/logs &"

0 commit comments

Comments
 (0)