Monday, May 01, 2006

Scripts in /etc/init.d/

A useful command to see which scripts are no longer used and can be safely deleted from /etc/init.d and /etc/conf.d

I got this command from the Gentoo Linux Wiki - Rc-update:

for each in /etc/{conf,init}.d/* ; do \

echo -n "$each " ; \
equery belongs -e "$each" | fgrep / || \
echo '!!! ORPHAN !!!' ; \
done

No comments: