summaryrefslogtreecommitdiff
path: root/net/opensips31/files/opensips31.in
blob: aa4cb2a37da2afa7c60aef874e9faee29dbc6be4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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}"