crans_bcfg2/Rules/identd.xml

8 lines
566 B
XML

<!-- Règles concernant les serveurs avec identd //-->
<Rules priority="1">
<Action name="unlink-ident2" timing="post" when="modified" status="check" command="update-rc.d ident2 remove"/>
<Action name="delete-ident2" timing="post" when="modified" status="check" command='find /etc/init.d -type f -iname "*ident2*" -delete'/>
<Action name="kill-ident2" timing="post" when="modified" status="check" command="ps aux | grep ident2 | grep /usr/sbin|awk '{print $2}'|xargs -I {} -n 1 -t kill -9 {}"/>
<Service type="deb" name="oidentd" status="ignore"/>
</Rules>