pidof - To list all the process id (PID) of one service at operating system(OS) level use the below commad.
$ pidof <service_name>
------------------------------------------------------------------------------------------------------------
eg:
$ pidof sapstartsrv
result:
list of PID running for sapstartsrv
--------------------------------------------------------------------------------------------------------------
use cases:
to kill all the PID of one service @ OS level, need to collect all the pid numbers of running service.by the above pidof command, can collect list of pid of the service.
No comments:
Post a Comment