Andrzej,
On 13/01/2012 13:58, Andrzej Odyniec wrote:
> Dominic,
>
>> On my DL machines (1.6.0-RC1, 32-bit server) iptstate seems to run
>> continuously (and use significant CPU resource), outputting to tty7.
>>
>> Is this by design? Looking at man page I think iptstate should run only
>> when called. If I kill it will I break something?
> iptstate (as other programs) can be called indirectly by init from
> /etc/inittab. As I can see now, in /etc-cd/inittab is:
>
>> 8:2345:respawn:env - TERM=linux /bin/procinfo -f -F /dev/tty8
>> #7:2345:respawn:env - TERM=linux /usr/sbin/iptstate -r 5> /dev/tty7< /dev/tty7
> ...so start iptstate from inittab is commented out. This line is appended by
> build/scripts/iptstate in install phase.
>
> But as I remember, some time ago this line was active (not commented out). If
> You changed in this time something in this file (i.e. commented out start of
> daemontools) and saved your configuration, You have your own changed copy of
> this file in /shm/etc-mods probably with old, uncommented start of iptstate.
>
> You can edit /etc/inittab and comment out start of iptstate on console7, as is
> now in default inittab. You can remove file /shm/etc-mods/inittab and in etc
> you will see initial/default inittab file.
Thanks Andrzej, that solves it. I never changed inittab so it must be I
had an older version - the only difference was this one line which as
you say is now commented out. I deleted /shm/etc-mods/inittab and
rebooted, now iptstate is gone :-)
Dominic
|