Skip to content

Commit 6656b64

Browse files
add note about restarting the runner service after changing the .env file
1 parent 42fc186 commit 6656b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job.md

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ ACTIONS_RUNNER_HOOK_JOB_STARTED=/opt/runner/cleanup_script.sh
5858
> [!NOTE]
5959
> The script defined in `ACTIONS_RUNNER_HOOK_JOB_COMPLETED` is executed at the end of the job, before the job completes. This makes it unsuitable for use cases that may interrupt a runner, such as deleting the runner machine as part of an autoscaling implementation.
6060
61+
> [!NOTE]
62+
> If the runner application is running as a service, it reads the `.env` file only when the service starts. So after creating or editing the `.env` file, you need to stop and restart the service.
63+
6164
## Troubleshooting
6265

6366
### Permission denied

0 commit comments

Comments
 (0)