Commit dca1822
committed
[type/__start_on_boot] Speed up state explorer on OpenBSD
Instead of running `rcctl ls on` and grep(1)ing for the service of interest, we
can just query the service's status. `rcctl ls on` does the same thing, but it
queries the status for all services which is unnecessary for this case.
Further, the grep(1) (which interpreted the service name as a regular expression)
is not necessary anymore. Another issue with the grep was that it printed the
service name if it matched, breaking `$state_is` in `manifest` and
`gencode-remote`.1 parent f169e8c commit dca1822
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | | - | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
0 commit comments