mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
Includes additional changes on top of submitters patch to improve port PR: 253844 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D31765
35 lines
821 B
Bash
35 lines
821 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: net/opensips/files/opensips.in
|
|
#
|
|
# PROVIDE: opensips31
|
|
# 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=opensips31
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config opensips31
|
|
|
|
opensips_enable=${opensips_enable:-"NO"}
|
|
opensips_shmem_size=${opensips_shmem_size:-"64"}
|
|
opensips_pkmem_size=${opensips_pkmem_size:-"4"}
|
|
opensips_user=${opensips_user:-"opensips"}
|
|
opensips_group=${opensips_group:-"opensips"}
|
|
|
|
command="${prefix}/sbin/opensips31"
|
|
command_args="-m ${opensips_shmem_size} -M ${opensips_pkmem_size}"
|
|
required_files="${prefix}/etc/opensips31/opensips.cfg"
|
|
|
|
run_rc_command "${1}"
|