File tree 1 file changed +32
-2
lines changed
1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,44 @@ set -e
156
156
exec <PATH_TO_EVREMAP> remap <CONFIG>
157
157
```
158
158
159
- Replace ` <PATH_TO_EVREMAP> ` with the path to your evremap executable and ` <CONFIG> ` with the path
160
- to your configuration file
159
+ Replace ` <PATH_TO_EVREMAP> ` with the path to your evremap executable and ` <CONFIG> ` with the path to your configuration file.
161
160
162
161
* Finally, symlink the evremap directory to ` /var/service `
163
162
``` console
164
163
sudo ln -s /etc/sv/evremap /var/service
165
164
```
166
165
166
+ ## OpenRC
167
+
168
+ To make an OpenRC service, create the file ` /etc/init.d/evremap ` with the following contents...
169
+
170
+ ``` console
171
+ #!/usr/bin/openrc-run
172
+
173
+ supervisor=supervise-daemon
174
+ command="<PATH_TO_EVREMAP>"
175
+ command_args="remap <CONFIG>"
176
+ ```
177
+
178
+ Replace ` <PATH_TO_EVREMAP> ` with the path to your evremap executable and ` <CONFIG> ` with the path to your configuration file.
179
+
180
+ Make the file executable...
181
+
182
+ ``` console
183
+ chmod +x /etc/init.d/evremap
184
+ ```
185
+
186
+ Enable the service with...
187
+
188
+ ``` console
189
+ rc-update add evremap
190
+ ```
191
+
192
+ Start the service with...
193
+
194
+ ``` console
195
+ rc-service evremap start
196
+ ```
167
197
168
198
## How do I make this execute a command when a key is pressed?
169
199
You can’t perform that action at this time.
0 commit comments