ports/net/opensips/files/opensips.in
Kurt Jaeger 4476228211 New port: net/opensips
OpenSIPS (Open SIP Server) is a mature Open Source implementation
of a SIP server.

It includes application-level functionalities and is the core component
of any SIP-based VoIP solution. With a very flexible and customizable
routing engine, OpenSIPS unifies voice, video, IM and presence
services in a highly efficient way, thanks to its scalable (modular)
design.

It is reliable and fast, for enterprise or carrier-grade use cases.

WWW: http://www.opensips.org/

PR:		203407
Submitted by:	Euan Thoms <euan@potensol.com>
2015-10-01 16:34:41 +00:00

33 lines
724 B
Bash

#!/bin/sh
#
# $FreeBSD: net/opensips/files/opensips.in
#
# PROVIDE: opensips
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable this service
# at system startup:
#
# opensips_enable (bool): Set to NO by default.
# Set it to YES to enable opensips.
#
prefix=/usr/local
. /etc/rc.subr
name=opensips
rcvar=`set_rcvar`
load_rc_config opensips
opensips_enable=${opensips_enable:-"NO"}
opensips_shmem_size=${opensips_shmem_size:-"32"}
opensips_pkmem_size=${opensips_pkmem_size:-"2"}
command="${prefix}/sbin/opensips"
command_args="-m ${opensips_shmem_size} -M ${opensips_pkmem_size}"
required_files="${prefix}/etc/opensips/opensipsctlrc"
run_rc_command "${1}"