Browse code

- added freebsd startup script from Paul Belanger <pabelanger@gmail.com> - applied INFO support patch from Maxim

Andrei Pelinescu-Onciul authored on 18/05/2005 16:48:07
Showing 2 changed files
... ...
@@ -53,7 +53,7 @@ MAIN_NAME=ser
53 53
 VERSION = 0
54 54
 PATCHLEVEL = 10
55 55
 SUBLEVEL =   99
56
-EXTRAVERSION = -dev5
56
+EXTRAVERSION = -dev6
57 57
 
58 58
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
59 59
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
60 60
new file mode 100644
... ...
@@ -0,0 +1,24 @@
1
+#!/bin/sh
2
+#
3
+# Start/stop/restart SIP EXpress Router (SER)
4
+#
5
+# Version: 1.0 - Paul Belanger <pabelanger@gmail.com>
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
+
15
+. /etc/rc.subr
16
+
17
+name="ser"
18
+rcvar="`set_rcvar`"
19
+command="/usr/local/sbin/${name}"
20
+pidfile="/var/run/${name}.pid"
21
+
22
+load_rc_config $name
23
+ser_flags="$cron_flags -P $pidfile"
24
+run_rc_command "$1"