mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@632 311d38ba-8fff-0310-9ca6-ca027cbcb966
705 B
Executable File
705 B
Executable File
#!/bin/sh
killproc() { # kill the named process(es)
pid=/bin/ps -e x | /bin/grep $1 | /bin/grep -v grep | /bin/sed -e 's/^ *//' -e 's/ .*//'
[ "$pid" != "" ] && kill $pid
}
case "$1" in start) # We don't want this script to block the rest of the boot process if [ "$2" != "background" ]; then $0 $1 background & else . /etc/profile
echo "Starting Xserver"
/etc/X11/Xserver &
fi
;;
stop) echo "Stopping XServer" killproc xinit ;;
restart) $0 stop sleep 1 $0 start ;;
*) echo "usage: $0 { start | stop | restart }" ;; esac
exit 0