Operating System - HP-UX
1834745 Members
2757 Online
110070 Solutions
New Discussion

need to stop the "rlpdaemon"

 
SOLVED
Go to solution
praveen..
Super Advisor

need to stop the "rlpdaemon"

Hi,
I need to do this:
1. Kill all the errant “rlpdaemon” processes.
2. Kill the “rlpdaemon” parent process.
3. Change the “init” script so that “rlpdaemon” does not get started upon re-boot.

How to do it?

# ps -ef | grep -i rlpdaemon
root 6282 6233 0 02:54:00 pts/2 0:00 grep -i rlpdaemon
root 24728 1244 255 Jun 13 ? 18466:13 rlpdaemon -i
root 24740 1244 255 Jun 13 ? 18819:03 rlpdaemon -i
root 15737 1244 255 Jun 22 ? 5710:37 rlpdaemon -i
root 15770 1244 255 Jun 22 ? 5800:10 rlpdaemon -i
root 15758 1244 255 Jun 22 ? 5828:07 rlpdaemon -i
root 20575 1244 255 Jun 15 ? 15761:00 rlpdaemon -i
root 20594 1244 255 Jun 15 ? 15857:16 rlpdaemon -i
root 20369 1244 255 Jun 20 ? 8911:04 rlpdaemon -i
root 20605 1244 255 Jun 15 ? 15653:56 rlpdaemon -i
# cd /usr/sbin
# ll rlp*
-r-sr-xr-- 1 root lp 88740 Aug 26 2004 rlp
-r-sr-xr-x 1 root bin 178044 Aug 26 2004 rlpdaemon
-r-sr-xr-x 1 root bin 77748 Aug 26 2004 rlpstat
#
11 REPLIES 11
Arunvijai_4
Honored Contributor

Re: need to stop the "rlpdaemon"

Hi Praveen,

Check from where "rlpdaemon" is started. There are two ways of doing it.

1) Thro' Inetd: Check /etc/inetd.conf and comment printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i

Restart Inetd daemon.

2) Thro' /sbin/rc: Kill all the process related to "rlpdaemon"

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

should i kill all?
and how to make not to get started upon reboot
Arunvijai_4
Honored Contributor

Re: need to stop the "rlpdaemon"

Hi Praveen,

If it starts from Inetd, comment #printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i in /etc/inetd.conf. If it is started by /sbin/rc, you need to kill.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

how to check it?

i killed all the rlpdaemon process usinh kill command, but this processes go started again.

not able to find the parent process.
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

please suggest?

how can i find the parent process
Arunvijai_4
Honored Contributor

Re: need to stop the "rlpdaemon"

Hi,

You have to use # ps -ef |grep -i rlp

Check the third column for PPID>

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

# ps -ef | grep -i rlp
root 28886 28565 1 02:24:31 pts/10 0:00 grep -i rlp
# /usr/sbin/rlpdaemon start
# ps -ef | grep -i rlp
root 28895 28565 0 02:24:54 pts/10 0:00 grep -i rlp
# ps -ef | grep -i rlpdaemon
root 28900 28565 0 02:25:32 pts/10 0:00 grep -i rlpdaemon
# /usr/sbin/rlpdaemon stop
#

i killed all the rlpdaemon process some times before thatz why it is not showing any process now, but after sometime, it will show that rlpdaemon process is running.

i checked the /etc/inetd.conf, no entry is there for printer.

how to stop the parent process
Raj D.
Honored Contributor
Solution

Re: need to stop the "rlpdaemon"

Praveen,


You have to put comment in this two line of this two file :

1. /etc/services
rlp 39/udp resource # Resource Location Protocol

2./etc/inetd.conf
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i


(Put comment on both entry rlp and printer)
And restart inted using # inetd -c
Remember this will stop LP print request to remote system.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Arunvijai_4
Honored Contributor

Re: need to stop the "rlpdaemon"

Hi Praveen,

Kindly check this page, http://docs.hp.com/en/B9106-90008/rlpdaemon.1M.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

I have made these entries,
i will update you if it works
praveen..
Super Advisor

Re: need to stop the "rlpdaemon"

Hi,
i have made some entries in /etc/inetd.conf for "printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i" this line.

and #inetd -c
#/usr/sbin/rlpdaemon stop
#

but please let me know 1st line will start the rlpdaemon or stop the daemon.

i need to stop the rlpdaemon.

#ps -ef | grep -i rlpdaemon
root 23399 23241 0 00:56:25 pts/5 0:00 rlpdaemon -i

:::::::::::::::::::::


how to permanently stop it?