1834499 Members
2629 Online
110068 Solutions
New Discussion

ICOD

 
khilari
Regular Advisor

ICOD

Hi people, well this ICOD daemon is respawning on my console every 5 seconds. I tried to grep it but i didnt get any entry i did:
# ps -ef | grep -i icod
root 26712 26404 0 11:00:04 pts/ta 0:00 grep -i icod
And in the inittab entry i got.
icod:23456:respawn:/usr/lbin/icodd # iCOD daemon
So, how do i get rid of it....
Thanks.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: ICOD

Shalom,

This usually ahppens when someone tries to have this daemon run out of /etc/inittab instead of setting it up with a startup script in /sbin/init.d

TAke it out of inittab

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: ICOD

Shouldn't be in inittab at all....

You should have a cron job:

0 12 * * * /usr/sbin/icod_notify -c /dev/null 2>/dev/null


and in /sbin/init.d an icod script:

# cat icod
#!/sbin/sh
#
# $Revision: 72.13 $ $Date: 2001-05-07 17:15:20-06 $
#
# Copyright (C) 1993, 1994 Hewlett-Packard Company
#
# NOTE: This script is not configurable! Any changes made to this
# script will be overwritten when you upgrade to the next
# release of HP-UX.
#

PATH=/sbin:/usr/sbin:/usr/bin
export PATH

rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "EXIT CODE: $x"
rval=1 # always 1 so that 2 can be used for other reasons
fi
}


case $1 in
start_msg)
echo "Initialize capacity on demand"
;;

stop_msg)
echo "Stopping capacity on demand"
;;
'start')
case $(uname -m) in
9000/8*)
/usr/sbin/icod_modify -b >/dev/null 2>&1
rval=$?
if [ "$rval" = 0 ]; then
/usr/sbin/icod_notify -S >/dev/null 2>&1
elif [ "$rval" = 1 ]; then
echo "ERROR: The iCOD (instant Capacity on Demand) Agent"
echo " was unable to satisfy the requested number"
echo " of active processors. For further information"
echo " about iCOD status, run icod_stat (1m)."
fi
;;
*)
rval=2; # N/A
;;
esac
;;

'stop')
case $(uname -m) in
9000/8*)
/usr/sbin/icod_notify -k >/dev/null 2>&1
;;
*)
rval=2; # N/A
;;
esac
;;

*)
echo "usage: $0 {start|stop}"
rval=1
;;
esac

exit $rval

And the links:

# ll /sbin/rc*/*icod
lrwxr-xr-x 1 root 42 17 Aug 6 2002 rc1.d/K100icod -> /sbin/init.d/icod
lrwxr-xr-x 1 root 42 17 Aug 6 2002 rc2.d/S670icod -> /sbin/init.d/icod


Rgds...Geoff



Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Carlos Roberto Schimidt
Regular Advisor

Re: ICOD

HI,

For me its ok:

#grep icod /etc/inittab
icod:23456:respawn:/usr/lbin/icodd # iCOD daemon

# ps -ef | grep icod
root 4152 1 0 Mar 17 ? 0:03 /usr/lbin/icodd

You see any errors in file /var/adm/icod.log ?