startDM.sh 667 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. # Copyright 1999-2011 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License, v2
  4. # We need to source /etc/profile for stuff like $LANG to work
  5. # bug #10190.
  6. . /etc/profile
  7. . /etc/init.d/functions.sh
  8. # Great new Gnome2 feature, AA
  9. # We enable this by default
  10. export GDK_USE_XFT=1
  11. export SVCNAME=xdm
  12. EXEC="$(get_options service)"
  13. NAME="$(get_options name)"
  14. PIDFILE="$(get_options pidfile)"
  15. START_STOP_ARGS="$(get_options start_stop_args)"
  16. start-stop-daemon --start --exec ${EXEC} \
  17. ${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} ${START_STOP_ARGS} || \
  18. eerror "ERROR: could not start the Display Manager"
  19. # vim:ts=4