[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Man page for --cmdpart feature.

 man/start-stop-daemon.8 | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/man/start-stop-daemon.8 b/man/start-stop-daemon.8
index a70cd3d..85aedb2 100644
--- a/man/start-stop-daemon.8
+++ b/man/start-stop-daemon.8
@@ -134,6 +134,12 @@ short length limit (assuming more than 15 characters is non-portable).
 Check for processes owned by the user specified by \fIusername\fP or
 \fIuid\fP. Note: using this matching option alone will cause all processes
 matching the user to be acted on.
+.BR \-\-cmdpart " \fIprocess-argument-part\fP"
+Check for processes that have \fIprocess-argument-part\fP as first
+argument in the list of remaining unchecked process arguments. This
+option can be specified multiple times and so more than the first
+arguments of processes can be checked.
 .SS Generic options
@@ -363,3 +369,15 @@ Demonstration of a custom schedule for stopping \fBfood\fP:
 start\-stop\-daemon \-\-stop \-\-oknodo \-\-user food \-\-name food \\
 	\-\-pidfile /run/food.pid \-\-retry=TERM/30/KILL/5
+With interpreted scripts, multiple invocations of --cmdpart help to
+instances of the interpreter running different scripts. This only
+matches bash instances that run "my script.sh":
+start\-stop\-daemon \-\-start \\
+   \-\-cmdpart /bin/bash \\
+   \-\-cmdpart "/bin/my script.sh" \\
+   \-\-exec /bin/bash \\
+   "/bin/my script.sh"

Reply to: