rc.template 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Below is an rc.d(8) script template containing all usable variables and
  2. functions set to their defaults.
  3. See rc.subr(8) for more information.
  4. -----------------------------------8<-----------------------------------
  5. #!/bin/sh
  6. #
  7. # $OpenBSD: rc.template,v 1.11 2017/05/27 19:26:35 ajacoutot Exp $
  8. daemon="${TRUEPREFIX}/bin/foobar"
  9. #daemon_flags=
  10. #daemon_rtable=0
  11. #daemon_timeout="30"
  12. #daemon_user="root"
  13. . /etc/rc.d/rc.subr
  14. #pexp="${daemon}${daemon_flags:+ ${daemon_flags}}"
  15. #rc_bg= # (undefined)
  16. #rc_reload= # (undefined)
  17. #rc_usercheck=YES
  18. #rc_pre() {
  19. #}
  20. #rc_start() {
  21. # ${rcexec} "${daemon} ${daemon_flags}"
  22. #}
  23. #rc_check() {
  24. # pgrep -T "${daemon_rtable}" -q -xf "${pexp}"
  25. #}
  26. #rc_reload() {
  27. # pkill -HUP -T "${daemon_rtable}" -xf "${pexp}"
  28. #}
  29. #rc_stop() {
  30. # pkill -T "${daemon_rtable}" -xf "${pexp}"
  31. #}
  32. #rc_post() {
  33. #}
  34. rc_cmd $1
  35. -----------------------------------8<-----------------------------------