PREUN
/bin/sh
if [ "$1" = "0" ]; then /sbin/chkconfig --del xdm { if [ -f /var/lock/subsys/xdm ]; then /sbin/service xdm stop 1>&2 || :; fi };fi
POSTIN
/bin/sh
/sbin/chkconfig --add xdm if [ -f /var/lock/subsys/xdm ]; then echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2 echo "WARNING: it will terminate all sessions opened from xdm!" >&2 else echo "Run \"/sbin/service xdm start\" to start xdm." >&2 fi