1753449 Members
6566 Online
108794 Solutions
New Discussion юеВ

/var/spool/sockets/ICE

 
SOLVED
Go to solution
Brian Taylor
Advisor

/var/spool/sockets/ICE

Hey all,

What is this directory? And it is safe to clean it out? I have about 1500 files in there and it is messing with a username migration.

Thanks much!
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: /var/spool/sockets/ICE

Theyre all to do with CDE (dtsession processes). You can clean em out anytime, as long as the process they refer to isnt running anymore. All the files are PIDs - check first the process isnt running anymore then rm them.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sridhar Bhaskarla
Honored Contributor

Re: /var/spool/sockets/ICE

They are ICE (Inter-Client Exchange) pipes used by CDE sessions in X windows subsystem. If you are not using CDE emulation on this server, you can simply clean them up. Else write a small script to see if each of the pid is active and delete if not.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: /var/spool/sockets/ICE

THe vast majority of those are defunct CDE processes. I would do something like this:

#!/usr/bin/sh
cd /var/spool/sockets/ICE
ls | while read X
do
kill -0 ${X} > /dev/null
STAT=$?
if [ ${STAT} -ne 0 ]
then
rm ${X}
fi
done


Kill -0 simply tests if the process is active. It returns a zero result if so; non-zero otherwise and the file is safe to be deleted.

Clay
If it ain't broke, I can fix that.
Brian Taylor
Advisor

Re: /var/spool/sockets/ICE

Thanks all, you rock!