000.ser.sh 460 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #
  3. # Start/stop/restart SIP EXpress Router (SER)
  4. #
  5. # Version: 1.0 - Paul Belanger <[email protected]>
  6. #
  7. # Directions:
  8. # copy ser script to /usr/local/etc/rc.d/
  9. # edit /etc/rc.conf and add the following:
  10. # ser_enable="YES"
  11. #
  12. #
  13. # 05.05.2005 - Initial Version
  14. . /etc/rc.subr
  15. name="ser"
  16. rcvar="`set_rcvar`"
  17. command="/usr/local/sbin/${name}"
  18. pidfile="/var/run/${name}.pid"
  19. load_rc_config $name
  20. ser_flags="$cron_flags -P $pidfile"
  21. run_rc_command "$1"