1 2 3
#!/bin/sh LOCK=/var/lock/reload-dm [ -f "$LOCK" ] && rm -f $LOCK && if [ x"$RUNNING_UNDER_GDM" = xtrue ]; then nohup service dm restart; fi;