Skip to content

Commit fbb35cc

Browse files
authored
run_init: add page (#18459)
1 parent 45f453d commit fbb35cc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pages/linux/run_init.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# run_init
2+
3+
> Run init scripts in the proper SELinux context.
4+
> Typically used to run system service scripts with correct SELinux domains.
5+
> See also: `runcon`, `semanage`.
6+
> More information: <https://manned.org/run_init>.
7+
8+
- Run a script in the init script context:
9+
10+
`sudo run_init {{path/to/script}}`
11+
12+
- Run a script with arguments:
13+
14+
`sudo run_init {{path/to/script}} {{start|stop|restart}}`
15+
16+
- Run a script and specify the init script context explicitly:
17+
18+
`sudo run_init {{[-t|--type]}} {{context_type}} {{path/to/script}}`
19+
20+
- Display the context that would be used without running the script:
21+
22+
`sudo run_init {{[-n|--dry-run]}} {{path/to/script}}`

0 commit comments

Comments
 (0)