Finding out with which parameters a program was started
To find what arguments were passed to pdnsd, I'd do:
[~]> pgrep -l pdnsd
1373 pdnsd
[~]> cat /proc/1373/cmdline
/usr/sbin/pdnsd--daemon-p/var/run/pdnsd.pid[~]>
(cmdline
file entries are separated by null characters; use something like tr '\0' '\n' </proc/<pid>/cmdline
to see more legible output.)
/proc/<pid>/
contains a lot of information.
For Linux, ps -ef
yields the whole command line including the parameters.
For Solaris, things could be more problematic but you tagged the question with Linux...