Browse Source

- added freebsd startup script from Paul Belanger <[email protected]>
- applied INFO support patch from Maxim

Andrei Pelinescu-Onciul 20 years ago
parent
commit
1ebada00f3
2 changed files with 25 additions and 1 deletions
  1. 1 1
      Makefile.defs
  2. 24 0
      freebsd/000.ser.sh

+ 1 - 1
Makefile.defs

@@ -53,7 +53,7 @@ MAIN_NAME=ser
 VERSION = 0
 PATCHLEVEL = 10
 SUBLEVEL =   99
-EXTRAVERSION = -dev5
+EXTRAVERSION = -dev6
 
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")

+ 24 - 0
freebsd/000.ser.sh

@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Start/stop/restart SIP EXpress Router (SER)
+#
+# Version: 1.0 - Paul Belanger <[email protected]>
+#
+# Directions:
+# copy ser script to /usr/local/etc/rc.d/
+# edit /etc/rc.conf and add the following:
+# ser_enable="YES"
+#
+#
+# 05.05.2005 - Initial Version
+
+. /etc/rc.subr
+
+name="ser"
+rcvar="`set_rcvar`"
+command="/usr/local/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+ser_flags="$cron_flags -P $pidfile"
+run_rc_command "$1"