Skip to content

Commit 3c47bb9

Browse files
committed
Update verbiage
1 parent 1ec19bf commit 3c47bb9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/guides/custom-boot-hooks/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ echo "Running custom boot task..."
2323
### 2. Set Permissions and Ownership
2424
Make the script executable and ensure it’s owned by `root`:
2525

26+
```bash
27+
sudo chown root:root /mnt/jrc-comms/hooks/boot.d/99-custom-task
28+
sudo chmod +x /mnt/jrc-comms/hooks/boot.d/99-custom-task
29+
```
30+
2631
### 3. Verify Execution Order
27-
The application runs scripts in ascending order based on their numeric prefixes. For example:
32+
The application runs scripts in ascending order based on their numeric prefixes. Scripts added to `/mnt/jrc-comms/hooks/boot.d` will be injected into script located in `/opt/jrc/hooks/boot.d` based on script prefix For example:
2833

29-
- `05-mount-recovery-mount` runs first
30-
- `10-cluster-clean` runs next
31-
- `99-custom-task` runs last
34+
- `05-mount-recovery-mount` runs first (found in `/opt/jrc/hooks/boot.d`)
35+
- `10-cluster-clean` runs next (found in `/opt/jrc/hooks/boot.d`)
36+
- `99-custom-task` runs last (added to `/mnt/jrc-comms/hooks/boot.d`)
3237

3338
**Key rules:**
3439
- Prefixes determine execution order (e.g., `00-` to `99-`)
3540
- Use two-digit numbering for clarity (e.g., `05-`, `10-`, `99-`)
3641
- Scripts with the same prefix may execute in lexicographical order, but avoid ambiguity by using unique prefixes
42+
- Scripts added to `/mnt/jrc-comms/hooks/boot.d` will persist AMI upgrades, stack clones, etc.
3743

3844
---
3945

0 commit comments

Comments
 (0)