{% calculate chmod='755' %} #!/bin/sh # Xstop - run as root after stopping X if ! pgrep -f /usr/bin/X then [[ -x /usr/sbin/logout ]] && /usr/sbin/logout fi