Advertisement
timcowchip

gdm.sh

Sep 2nd, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!@RCD_SCRIPTS_SHELL@
  2. #
  3. # $NetBSD: gdm.sh,v 1.6 2011/10/07 22:37:06 shattered Exp $
  4. #
  5.  
  6. # PROVIDE: gdm
  7. # REQUIRE: DAEMON LOGIN wscons
  8. # KEYWORD: shutdown
  9.  
  10. if [ -f /etc/rc.subr ]; then
  11. . /etc/rc.subr
  12. fi
  13.  
  14. name="gdm"
  15. rcvar=${name}
  16. command="@PREFIX@/sbin/${name}"
  17. pidfile="/var/run/${name}.pid"
  18. procname="@PREFIX@/sbin/gdm-binary"
  19. required_files="@PKG_SYSCONFDIR@/custom.conf"
  20. extra_commands="reload"
  21.  
  22. if [ -f /etc/rc.subr ]; then
  23. load_rc_config ${name}
  24. run_rc_command "$1"
  25. else
  26. echo -n " ${name}"
  27. ${command} ${gdm_flags} ${command_args}
  28. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement