aboutsummaryrefslogtreecommitdiffstats
path: root/net/vserver/files/vserver.in
blob: 38a716ecbbfc0c9f1c98d0589fa0374f1e88c07e (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
36
37
38
39
40
41
42
43
#!/bin/sh

# $FreeBSD$
#
# FreeBSD boot time start up script for vserver(8).
#
# PROVIDE: vserver
# REQUIRE: LOGIN
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable vserver:
#
# vserver_enable="YES"
#
# Additional commandline qualifiers to be passed to vserver(8) may
# be specified in /etc/rc.conf by adding:
#
# vserver_flags="<your commandline qualifiers here>"
#
# See vserver(8) for a detailed description of vserver commandline qualifiers.
#

. %%RC_SUBR%%

name=vserver
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/vserver
required_files=%%PREFIX%%/etc/vchat/user.db

# read settings, set default values

load_rc_config "$name"
: ${vserver_enable="NO"}
: ${vserver_flags="/SYSLOG"}
: ${vserver_user="vchat"}
: ${vserver_group="vchat"}
: ${vserver_pidfile="%%PREFIX%%/etc/vchat/vserver.pid"}

command_args="/DETACH"

run_rc_command "$1"