We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45f453d commit fbb35ccCopy full SHA for fbb35cc
pages/linux/run_init.md
@@ -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