.B pidof
.RB [ \-s ]
.RB [ \-c ]
+.RB [ \-n ]
.RB [ \-x ]
.RB [ \-o
-.IR omitpid ]
+.IR omitpid[,omitpid..] ]
.RB [ \-o
-.IR omitpid.. ]
+.IR omitpid[,omitpid..].. ]
.B program
.RB [ program.. ]
.SH DESCRIPTION
.B start-stop-daemon
(8) program that should be used instead.
.SH OPTIONS
-.IP -s
+.IP \-s
Single shot - this instructs the program to only return one \fIpid\fP.
-.IP -c
+.IP \-c
Only return process ids that are running with the same root directory.
This option is ignored for non-root users, as they will be unable to check
the current root directory of processes they do not own.
-.IP -x
+.IP \-n
+Avoid
+.BR stat (2)
+system function call on all binaries which are located on network
+based file systems like
+.BR NFS .
+Instead of using this option the the variable
+.B PIDOF_NETFS
+may be set and exported.
+.IP \-x
Scripts too - this causes the program to also return process id's of
shells running the named scripts.
.IP "-o \fIomitpid\fP"
When \fIpidof\fP is invoked with a full pathname to the program it
should find the pid of, it is reasonably safe. Otherwise it is possible
that it returns pids of running programs that happen to have the same name
-as the program you're after but are actually other programs.
+as the program you're after but are actually other programs. Note that
+that the executable name of running processes is calculated with
+.BR readlink (2),
+so symbolic links to executables will also match.
+
.SH SEE ALSO
.BR shutdown (8),
.BR init (8),