opnsense-ports/net/opensips/files/opensips.in
Franco Fichtner 81767f1daa */*: sync with upstream
Taken from: HardenedBSD
2018-03-24 09:42:06 +01:00

35 lines
812 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:-"64"}
opensips_pkmem_size=${opensips_pkmem_size:-"4"}
opensips_user=${opensips_user:-"opensips"}
opensips_group=${opensips_group:-"opensips"}
command="${prefix}/sbin/opensips"
command_args="-m ${opensips_shmem_size} -M ${opensips_pkmem_size}"
required_files="${prefix}/etc/opensips/opensipsctlrc"
run_rc_command "${1}"