| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | PIDFILE=`grepscip-shell system . . grep. '^PidFile=' /etc/X11/gdm/gdm.confscip-shell filesystem . . `/etc/X11/gdm/gdm.conf`. | sedscip-shell system . . sed. -e 's/^PidFile=//'` |
| 3 | if testscip-shell system . . test. x$PIDFILE = x ; then |
| 4 | echoscip-shell system . . echo. "Can't find the PID file in the configuration file, going to try:" |
| 5 | echoscip-shell system . . echo. "/var/run/gdm.pidscip-shell filesystem . . `/var/run/gdm.pid`." |
| 6 | PIDFILE=/var/run/gdm.pidscip-shell filesystem . . `/var/run/gdm.pid`. |
| 7 | fi |
| 8 | if testscip-shell system . . test. '!' -f $PIDFILE ; then |
| 9 | echoscip-shell system . . echo. "$PIDFILE doesn't exist, perhaps GDM isn't running" |
| 10 | exit 1 |
| 11 | fi |
| 12 | # exec the kill to get the correct return code |
| 13 | exec kill -USR1 `catscip-shell system . . cat. $PIDFILE` |