diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-02-23 17:18:38 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-02-23 17:18:38 +0000 |
| commit | 9358ede0e510fe25cf26fd6cc349395ac8bc8558 (patch) | |
| tree | e3e7797efce9efc18747aa8eb34b52f701be0c1e /doc/mdevd.html | |
| parent | 05024f93d3cd75c86a89ed1ae6fea0c2b1f1c187 (diff) | |
| download | mdevd-9358ede0e510fe25cf26fd6cc349395ac8bc8558.tar.gz | |
Prepare for 1.0.4.0; new +,-,& directives for execlineb cmd interp
Diffstat (limited to 'doc/mdevd.html')
| -rw-r--r-- | doc/mdevd.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/mdevd.html b/doc/mdevd.html index 3412253..58568cd 100644 --- a/doc/mdevd.html +++ b/doc/mdevd.html @@ -151,6 +151,34 @@ configuration where it can create device nodes as root or delete them, and does nothing else. </p> +<h3> execline command support </h3> + +<p> + In addition to the traditional shell command spawning via the <tt>@</tt>, +<tt>$</tt> and <tt>*</tt> directives, mdevd also supports spawning a command +with the +<a href="https://skarnet.org/software/execline/execlineb.html">execlineb</a> +launcher: +</p> + +<ul> + <li> <tt>+<em>cmd</em></tt> : spawns <tt>execlineb -Pc <em>cmd</em></tt> +when this line catches an event that has <tt>ACTION=add</tt>. This is the +equivalent of <tt>@<em>cmd</em></tt>. </li> + <li> <tt>-<em>cmd</em></tt> : spawns <tt>execlineb -Pc <em>cmd</em></tt> +when this line catches an event that has <tt>ACTION=remove</tt>. This is the +equivalent of <tt>$<em>cmd</em></tt>. </li> + <li> <tt>&<em>cmd</em></tt> : spawns <tt>execlineb -Pc <em>cmd</em></tt> +when this line catches an event no matter its action type. This is the +equivalent of <tt>*<em>cmd</em></tt>. </li> +</ul> + +<p> + Note that unlike <tt>/bin/sh</tt>, <tt>execlineb</tt> is spawned without an +absolute path, so in order for <tt>+</tt>, <tt>-</tt> and <tt>&</tt> to +work, the <tt>execlineb</tt> command must be available in mdevd's PATH. +</p> + <h2> Notes </h2> <ul> |
