Skip to content

Commit 4938c9f

Browse files
committed
Allow to force start even if runner is already running
1 parent 46435ac commit 4938c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github_actions_runner_manager.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ start () {
4444
fi
4545

4646
# check if the runner is running
47-
if is_running "$state_path"
47+
if ! $force && is_running "$state_path"
4848
then
4949
echo "The runner is already running"
5050
exit 2
@@ -104,7 +104,7 @@ Optional arguments:
104104
-s PATH
105105
Path to the state directory of the manager (where PID and log files are stored). Default to the script directory.
106106
-f
107-
Force start.
107+
Force start even if the runner is running.
108108
-h
109109
Show this help message and exit.
110110

0 commit comments

Comments
 (0)