1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh filename="/tmp/qingy_restart_gpm" status=`pgrep gpm` if [ "$status" != "" ]; then /etc/init.d/gpm stop >/dev/null 2>/dev/null touch $filename fi