The method of shutting down rpc.statd and hpiod Services on Linux system
1. View the rpc.statd process path
# which rpc.statd/sbin/rpc.statd
1.1.The command to view rpc.statd is the documentation for the installation package.
# rpm-qf / sbin/rpc.statdnfs-utils-1.0.9-42.el5
1.2.Look at the beginning of nfs.
# ls / etc/init.d/nfs*/etc/init.d/nfs / etc/init.d/nfslock
1.3.View nfslock status
# service nfslock statusrpc.statd (pid 3524) is running...
1.4. stop the nfslock service
# service nfslock stop stop NFS statd: [OK]
1.5. Turn it off and start it on.
# chkconfig nfslock off # chkconfig-- list nfslocknfslock 0: close 1: close 2: close 3: close 4: close 5: close 6: close
2. View the process hpiod path
# which hpiod/usr/sbin/hpiod
2.1. the command to view hpiod is the documentation for the installation package.
# rpm-qf / usr/sbin/hpiodhplip-1.6.7-4.1.el5_2.4
2.2.Look at the beginning of hplip
# ls / etc/init.d/hplip / etc/init.d/hplip
2.3.Check hplip status and stop service
[root@test ~] # service hplip statushpiod (pid 3884) is running... hpssd (pid 3889) is running... # service hplip stop stop hpiod: [OK] stopping hpssd: [OK] # chkconfig hplip off# chkconfig-- list hpliphplip 0: off Close 1: close 2: close 3: close 4: close 5: close 6: close
3. Shut down portmap and cups services
# service cups stopcupsd stopped # chkconfig cups off# chkconfig-- list cupscups 0: close 1: close 2: close 3: close 4: close 5: close 6: close # service portmap stopportmap stopped # chkconfig portmap off# chkconfig-- list portmapportmap 0: close 1: close 2: close 3: close 4: close 5: close 6: close